New answers tagged

0

I think you have the logic wrong JSON.dump creates a string while JSON.loads creates an object so you are creating a string from json object and then converting it back to json object and also you are calling resp['unavailableQty'], but if the resp is the json that you have given, then it does not have a direct property field 'unavailableQty'. To get it ...


2

Your JSON is not valid: 1 { 2 "User ID": 204120, 3 "name": "New User", 4 "Description": [{ 5 "name": "john", 6 "id": 204110, 7 "type": "robotics" 8 }], 9 "Status": "Post request Successfully" 10 } You need to add a name to the value on lines 5,6,7 Or you need to remove the {} brackets to make it valid "Description": [ "john", ...


2

Your data is not a valid JSON, you can check it yourself using i.e. online JSON formatter and validator You syntax of combination of __eval() and __FileToString() functions is incorrect, you should wrap the __FileToString() function into the __eval() and you're doing the opposite thing: ${__eval(${__FileToString(${Json_request.txt},,)})} More information: ...


Top 50 recent answers are included