Hello,
I’m trying to parse string to JSONARRAY. It contains array of JSONOBJECT but running into parsing error. I’m not sure if it’s an issue with my syntax or if it is not allowed to pass array of JSONOBJECT in JSONARRAY string. Can someone please please help with this issue or any work around for this structure?
eg.,
STRING str = “[{“keyA”:”%test1%",“keyB”:“test1”},{“keyA”:"%test2%",“keyB”:“test2”}]";
JSONARRAY jsonA = parse_json_array(str);
Output:
Runtime Error: “[{“keyA”:”%test1%",“keyB”:“test1”},{“keyA”:"%test2%",“keyB”:“test2”}]" cannot be parsed as a json array.