79430114

Date: 2025-02-11 13:25:42
Score: 1.5
Natty:
Report link

I have a Python app taking json request if I use a say postman to post the json to the service it works args : dict = json.loads( request.data.decode('utf-8'))

but when I use the web app browser this does not return a dict it returns a str

to get around that I had to do this args : dict = json.loads( json.loads( request.data.decode('utf-8') ) )

i am thinking going to have to do some RTTI to check the type and optionally do the second json.loads in such sitatuations

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: D Fields