{"action":"created","issue":{"url":"https://api.github.com/repos/zotonic/zotonic/issues/942","labels_url":"https://api.github.com/repos/zotonic/zotonic/issues/942/labels{/name}","comments_url":"https://api.github.com/repos/zotonic/zotonic/issues/942/comments","events_url":"https://api.github.com/repos/zotonic/zotonic/issues/942/events","html_url":"https://github.com/zotonic/zotonic/pull/942","id":69592358,"number":942,"title":"Decode JSON body in service calls","user":{"login":"ddeboer","id":89267,"avatar_url":"https://avatars.githubusercontent.com/u/89267?v=3","gravatar_id":"","url":"https://api.github.com/users/ddeboer","html_url":"https://github.com/ddeboer","followers_url":"https://api.github.com/users/ddeboer/followers","following_url":"https://api.github.com/users/ddeboer/following{/other_user}","gists_url":"https://api.github.com/users/ddeboer/gists{/gist_id}","starred_url":"https://api.github.com/users/ddeboer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddeboer/subscriptions","organizations_url":"https://api.github.com/users/ddeboer/orgs","repos_url":"https://api.github.com/users/ddeboer/repos","events_url":"https://api.github.com/users/ddeboer/events{/privacy}","received_events_url":"https://api.github.com/users/ddeboer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-20T13:56:47Z","updated_at":"2015-05-18T14:23:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zotonic/zotonic/pulls/942","html_url":"https://github.com/zotonic/zotonic/pull/942","diff_url":"https://github.com/zotonic/zotonic/pull/942.diff","patch_url":"https://github.com/zotonic/zotonic/pull/942.patch"},"body":"This is a proposal to automatically decode JSON content bodies in service API calls. "},"comment":{"url":"https://api.github.com/repos/zotonic/zotonic/issues/comments/103076810","html_url":"https://github.com/zotonic/zotonic/pull/942#issuecomment-103076810","issue_url":"https://api.github.com/repos/zotonic/zotonic/issues/942","id":103076810,"user":{"login":"witeman","id":297995,"avatar_url":"https://avatars.githubusercontent.com/u/297995?v=3","gravatar_id":"","url":"https://api.github.com/users/witeman","html_url":"https://github.com/witeman","followers_url":"https://api.github.com/users/witeman/followers","following_url":"https://api.github.com/users/witeman/following{/other_user}","gists_url":"https://api.github.com/users/witeman/gists{/gist_id}","starred_url":"https://api.github.com/users/witeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/witeman/subscriptions","organizations_url":"https://api.github.com/users/witeman/orgs","repos_url":"https://api.github.com/users/witeman/repos","events_url":"https://api.github.com/users/witeman/events{/privacy}","received_events_url":"https://api.github.com/users/witeman/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T14:23:06Z","updated_at":"2015-05-18T14:23:06Z","body":"Why not using jsx(https://github.com/talentdeficit/jsx) instead of mochijson2, it is able to decode json binary into lists or maps.\n\nBest regards,\nWiteman\n\n> 在 2015年4月20日，下午10:37，Marc Worrell <notifications@github.com> 写道：\n> \n> Maybe just check if the decoded value is a {struct, ...} and if so, then set the q arguments?\n> \n> Maybe we should modify webzmachine - so that content_types_accepted is also called for 'normal' POST requests.\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}