add to_json method for SQLAlchemy models
add to_json method for SQLAlchemy models

We should use a custom encoder to avoid serialization errors.

dpausp/arguments,dpausp/arguments,dpausp/arguments,dpausp/arguments