Ir al contenido
Menú
Se marcó esta pregunta
2480 Vistas
@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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
ene 23
2471
2
sept 20
12203
2
ago 25
2655
2
jun 25
1112
3
jul 24
3862