Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2110 Prikazi
@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
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
jan. 23
2175
2
sep. 20
11678
1
jun. 25
2092
2
jun. 25
402
3
jun. 24
3261