You are not logged in.
Hi Ab,
if I POST the following JSON
[
{
"iD": 1,
"name": "a"
},
{
"iD": 2,
"name": "b"
}
]
the first square bracket is removed by invalidating input parameters.
...
if Par^ in [#1..' '] then repeat inc(Par) until not(Par^ in [#1..' ']);
case Par^ of
'[': // input arguments as a JSON array , e.g. '[1,2,"three"]' (default)
THIS REMOVES THE BRACKET--> inc(Par);
'{': begin // retrieve parameters values from JSON object
...
Offline
Parameters are transmitted as a json array.
So you have to put your array parameter within another json array.
Okay, I have just tried this option
[[
{
"iD": 1,
"name": "a"
},
{
"iD": 2,
"name": "b"
}
]]
still missing the first bracket...
Could you please provide a right example of this array? Thank you!
Offline