AnsweredAssumed Answered

JSON / Insert from URL adds surplus brackets

Question asked by user27704 on Feb 3, 2019
Latest reply on Feb 4, 2019 by beverly

Hi, Im trying to use INSERT from URL to transfer some JSON. I did this before but now something strange is happening:

 

 

Here ist the JSON I am using, it is stored in the variable $json:

 

{"Param1":"2","Region":"Bordeaux","ID":"000313W"}

 

My cURL-options are these, and I am using them like this with another URL successfully.


"-d@$json"

 

tried also "--data=" & $json with the same result.

 

 

My corresponding URL in this case is receiving this:

 

{"{\"Perlend\":\"\",\"Region\":\"Bordeaux\",\"WeinID\":\"000313W\"}":""}

 

Apparently my whole JSON is considered to be a string, being the name of the element with a lot of escaped quotation marks (red), with an empty value (blue).

 

 

Anybody has an idea why?

Outcomes