Hi All
Having a bit of a mare with decoding a json dataset
When I execute this get 'java.lang.RuntimeException: JSON Object expected.' but the JSON is valid and all the validators I could find
Thanks in advance David
Having a bit of a mare with decoding a json dataset
Example:
Dim json As JSONParser
Dim text As String '= j.GetString
text = $"[{ "errors": "OK,203",
"LegOtherID": "100321888",
"ExtraTypeID": "19233",
"Reading": "Test Data",
"SecurityID": "10801",
"ReadingType": "108",
"base64": "Test Data",
"decimal": "Test Data",
"integer": "Test Data",
"boolean": "Test Data",
"Text": "Test Data"
}, {
"errors": "OK,203",
"LegOtherID": "100321888",
"ExtraTypeID": "19235",
"Reading": "Test Data",
"SecurityID": "10801",
"ReadingType": "108",
"base64": "Test Data",
"decimal": "Test Data",
"integer": "Test Data",
"boolean": "Test Data",
"Text": "Test Data"
}, {
"errors": "OK,203",
"LegOtherID": "100321888",
"ExtraTypeID": "19237",
"Reading": "Test Data",
"SecurityID": "10801",
"ReadingType": "108",
"base64": "Test Data",
"decimal": "Test Data",
"integer": "Test Data",
"boolean": "Test Data",
"Text": "Test Data"
}]"$
json.Initialize(text)
Dim m As Map = json.NextObject
When I execute this get 'java.lang.RuntimeException: JSON Object expected.' but the JSON is valid and all the validators I could find
Thanks in advance David