Skip to Content
Menu
This question has been flagged
1545 Views
@http.route('/test_url/print_json', auth='public', type='json', cors="*", csrf=False)
def print_json(self, **post):
        return {"msg":"ok"}

 I expect to get JSON {"msg":"ok"}
but actually going to return {"jsonrpc":"2.0","id":null,"result":{"msg":"ok"}}

Avatar
Discard
Related Posts Replies Views Activity
0
Jan 23
1239
2
Sep 20
10298
3
Jun 24
1839
4
May 24
10079
0
Apr 24
565