-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
The current docs do not give an example of serialization support for JSON.
I attempted to use Marshmallow's dumps feature
db.MyModel.Schema.dumps(someInstanceOfMyModel)
# throws this error:
TypeError: dumps() missing 1 required positional argument: 'obj' marshmallowBut received an error. I am currently using someInstanceOfMyModel._raw to get the data for JSON output.
Feature Request
Add a expose a dumps method to get a dict.
db.MyModel.dumps(someInstanceOfMyModel)chrisbelyea
Metadata
Metadata
Assignees
Labels
No labels