コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2353 ビュー
@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"}}

アバター
破棄
関連投稿 返信 ビュー 活動
0
1月 23
2328
2
9月 20
11969
2
8月 25
2437
2
6月 25
807
3
6月 24
3608