{"action":"created","issue":{"url":"https://api.github.com/repos/noirbizarre/flask-restplus/issues/116","labels_url":"https://api.github.com/repos/noirbizarre/flask-restplus/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/noirbizarre/flask-restplus/issues/116/comments","events_url":"https://api.github.com/repos/noirbizarre/flask-restplus/issues/116/events","html_url":"https://github.com/noirbizarre/flask-restplus/issues/116","id":125141472,"number":116,"title":"Can I Post a json?","user":{"login":"wangshunping","id":10842398,"avatar_url":"https://avatars.githubusercontent.com/u/10842398?v=3","gravatar_id":"","url":"https://api.github.com/users/wangshunping","html_url":"https://github.com/wangshunping","followers_url":"https://api.github.com/users/wangshunping/followers","following_url":"https://api.github.com/users/wangshunping/following{/other_user}","gists_url":"https://api.github.com/users/wangshunping/gists{/gist_id}","starred_url":"https://api.github.com/users/wangshunping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangshunping/subscriptions","organizations_url":"https://api.github.com/users/wangshunping/orgs","repos_url":"https://api.github.com/users/wangshunping/repos","events_url":"https://api.github.com/users/wangshunping/events{/privacy}","received_events_url":"https://api.github.com/users/wangshunping/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-06T09:30:57Z","updated_at":"2016-01-29T01:07:48Z","closed_at":null,"body":"as I see in a demo from swagger.io, i could post a json file \r\n![image](https://cloud.githubusercontent.com/assets/10842398/12139367/fda67122-b49a-11e5-96a6-d1065c68a7d9.png)\r\n\r\n\r\nflask-restplus support it ?\r\n\r\ncan can i modify argument ?\r\n\r\nI modify parser this way and it doesn't work.\r\n```\r\n\r\nparser = api.parser()\r\nparser.add_argument('body', type=json, required=True, help='json content', location='json')\r\n\r\n\r\n```\r\n\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/noirbizarre/flask-restplus/issues/comments/176506428","html_url":"https://github.com/noirbizarre/flask-restplus/issues/116#issuecomment-176506428","issue_url":"https://api.github.com/repos/noirbizarre/flask-restplus/issues/116","id":176506428,"user":{"login":"harishkashyap","id":4368427,"avatar_url":"https://avatars.githubusercontent.com/u/4368427?v=3","gravatar_id":"","url":"https://api.github.com/users/harishkashyap","html_url":"https://github.com/harishkashyap","followers_url":"https://api.github.com/users/harishkashyap/followers","following_url":"https://api.github.com/users/harishkashyap/following{/other_user}","gists_url":"https://api.github.com/users/harishkashyap/gists{/gist_id}","starred_url":"https://api.github.com/users/harishkashyap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harishkashyap/subscriptions","organizations_url":"https://api.github.com/users/harishkashyap/orgs","repos_url":"https://api.github.com/users/harishkashyap/repos","events_url":"https://api.github.com/users/harishkashyap/events{/privacy}","received_events_url":"https://api.github.com/users/harishkashyap/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T01:07:48Z","updated_at":"2016-01-29T01:07:48Z","body":"just do api.route over your class instead of type=json\r\n\r\nclass Test(fields.Raw):\r\n    def format(self, value):\r\n        return {'x': ['whatever']}\r\n\r\ntest_fields = api.model('Test', {\r\n    'a': fields.String(required=True, description='...', example='an example'),\r\n    'b': Test(example=\"hey\")\r\n})\r\n\r\nuse @api.route('/whatever', methods=[post])\r\nclass whatever(Resource):\r\n    def post(self):\r\n         @api.expect(fields=test_fields)\r\n           all_params = request.json()"}}