Skip to Content
मेन्यू
This question has been flagged
2211 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
जन॰ 23
2237
2
सित॰ 20
11774
1
जून 25
2213
2
जून 25
563
3
जून 24
3374