We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need to deserialize this JSON:
{ "emails": { "items": [ { "id": 1, "email": "[email protected]" }, { "id": 2, "email": "[email protected]" } ] } }
Into this object using Marshmallow:
{ "emails": [ { "id": 1, "email": "[email protected]" }, { "id": 2, "email": "[email protected]" } ] }
How can I do it?
I tried this way, which I found more intuitive, but it did not work:
class Phone(OrderedSchema): id = fields.Int() email = fields.Str() class Contact(Schema): key = fields.Str() phones = fields.Nested(Phone, load_from='phones.list', many=True)
The text was updated successfully, but these errors were encountered:
@vcamaral please close this as duplicate of https://github.com/marshmallow-code/marshmallow/issues/873.
Sorry, something went wrong.
No branches or pull requests
I need to deserialize this JSON:
Into this object using Marshmallow:
How can I do it?
I tried this way, which I found more intuitive, but it did not work:
The text was updated successfully, but these errors were encountered: