{"action":"created","issue":{"url":"https://api.github.com/repos/marshmallow-code/marshmallow/issues/873","repository_url":"https://api.github.com/repos/marshmallow-code/marshmallow","labels_url":"https://api.github.com/repos/marshmallow-code/marshmallow/issues/873/labels{/name}","comments_url":"https://api.github.com/repos/marshmallow-code/marshmallow/issues/873/comments","events_url":"https://api.github.com/repos/marshmallow-code/marshmallow/issues/873/events","html_url":"https://github.com/marshmallow-code/marshmallow/issues/873","id":338618723,"node_id":"MDU6SXNzdWUzMzg2MTg3MjM=","number":873,"title":"Help to deserialize complex JSON","user":{"login":"vcamaral","id":860466,"node_id":"MDQ6VXNlcjg2MDQ2Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/860466?v=4","gravatar_id":"","url":"https://api.github.com/users/vcamaral","html_url":"https://github.com/vcamaral","followers_url":"https://api.github.com/users/vcamaral/followers","following_url":"https://api.github.com/users/vcamaral/following{/other_user}","gists_url":"https://api.github.com/users/vcamaral/gists{/gist_id}","starred_url":"https://api.github.com/users/vcamaral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vcamaral/subscriptions","organizations_url":"https://api.github.com/users/vcamaral/orgs","repos_url":"https://api.github.com/users/vcamaral/repos","events_url":"https://api.github.com/users/vcamaral/events{/privacy}","received_events_url":"https://api.github.com/users/vcamaral/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-07-05T15:17:41Z","updated_at":"2018-07-05T19:10:04Z","closed_at":null,"author_association":"NONE","body":"I need to deserialize this JSON:\r\n\r\n```json\r\n{\r\n    \"emails\": {\r\n        \"items\": [\r\n            {\r\n                \"id\": 1,\r\n                \"email\": \"john@doe.com\"\r\n            },\r\n            {\r\n                \"id\": 2,\r\n                \"email\": \"jane@doe.com\"\r\n            }\r\n        ]\r\n    }\r\n}\r\n```\r\n\r\nInto this object using Marshmallow:\r\n\r\n```json\r\n{\r\n    \"emails\": [\r\n        {\r\n            \"id\": 1,\r\n            \"email\": \"john@doe.com\"\r\n        },\r\n        {\r\n            \"id\": 2,\r\n            \"email\": \"jane@doe.com\"\r\n        }\r\n    ]\r\n}\r\n```\r\n\r\nHow can I do it?\r\n\r\nI tried this way, which I found more intuitive, but it did not work:\r\n\r\n```python\r\nclass Phone(OrderedSchema):\r\n    id = fields.Int()\r\n    email = fields.Str()\r\n\r\nclass Contact(Schema):\r\n    key = fields.Str()\r\n    phones = fields.Nested(Phone, load_from='phones.list', many=True)\r\n```"},"comment":{"url":"https://api.github.com/repos/marshmallow-code/marshmallow/issues/comments/402823943","html_url":"https://github.com/marshmallow-code/marshmallow/issues/873#issuecomment-402823943","issue_url":"https://api.github.com/repos/marshmallow-code/marshmallow/issues/873","id":402823943,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjgyMzk0Mw==","user":{"login":"vcamaral","id":860466,"node_id":"MDQ6VXNlcjg2MDQ2Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/860466?v=4","gravatar_id":"","url":"https://api.github.com/users/vcamaral","html_url":"https://github.com/vcamaral","followers_url":"https://api.github.com/users/vcamaral/followers","following_url":"https://api.github.com/users/vcamaral/following{/other_user}","gists_url":"https://api.github.com/users/vcamaral/gists{/gist_id}","starred_url":"https://api.github.com/users/vcamaral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vcamaral/subscriptions","organizations_url":"https://api.github.com/users/vcamaral/orgs","repos_url":"https://api.github.com/users/vcamaral/repos","events_url":"https://api.github.com/users/vcamaral/events{/privacy}","received_events_url":"https://api.github.com/users/vcamaral/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T19:10:04Z","updated_at":"2018-07-05T19:10:04Z","author_association":"NONE","body":"@lafrech but there is another way to do this without using `Pluck`?"}}
{"actor":{"display_login":"vcamaral"}}