Diego_Pin
(Diego Pin)
October 24, 2023, 3:32pm
1
Guys, I need a help, my json give a exception:
(Deserialize JSON: Deserialized JSON type ‘Newtonsoft.Json.Linq.JArray’ is not compatible with expected type ‘Newtonsoft.Json.Linq.JObject’. Path ‘’, line 41, position 1.)
The Json code:
@"[
{
““Data””: {
““HasDate””: false,
““HasSignature””: false,
““HasStamp””: false,
““Number””: {
““conf””: 99,
““value””: "“000132441"”
},
““ValidNumber””: false
},
““Page””: 1
},
{
““Data””: {
““HasDate””: false,
““HasSignature””: false,
““HasStamp””: false,
““Number””: {
““conf””: 99,
““value””: "“000132441"”
},
““ValidNumber””: false
},
““Page””: 2
},
{
““Data””: {
““HasDate””: false,
““HasSignature””: false,
““HasStamp””: false,
““Number””: {
““conf””: 99,
““value””: ““000132443"”
},
““ValidNumber””: false
},
““Page””: 3
}
]”
Somebody can hlep pls?
ppr
(Peter Preuss)
October 24, 2023, 3:46pm
2
Deserialize JSON Array Activity would be to use as it is JArray
Diego_Pin
(Diego Pin)
October 24, 2023, 4:23pm
3
I put STRING[ARRAY], but now give me this:
(Deserialize JSON: Unexpected character encountered while parsing value: {. Path ‘’, line 2, position 3.)
ppr
(Peter Preuss)
October 24, 2023, 4:26pm
4
We used your JSON and it was working with the above mentioned Activity
Maybe a few copy & paste made the JSON invalid
Check and find out the issues with JSONLint https://jsonlint.com/
ppr
(Peter Preuss)
October 24, 2023, 4:37pm
5
Diego_Pin:
I put STRING[ARRAY], but now give me this:
(Deserialize JSON: Unexpected character encountered while parsing value: {. Path ‘’, line 2, position 3.)
In addition to your feedback
We mentioned not these steps (Changing TypeArgument)
Also we mentioned Deserialize JSON Array Activity
From your screenshot we can see that
that you had not switched to the recommended Activity
Diego_Pin
(Diego Pin)
October 24, 2023, 5:17pm
6
Hmm… I change… but now is show this:
Deserialize JSON Array: Invalid property identifier character: “. Path ‘[0]’, line 3, position 4.