I have a problem to parse an array in Json. The Json is like this example:
[
[
A1,
A2,
A3,
],
[
B1,
B2,
B3,
],
and so on.
I get always an access violation error if I try to parse it:
procedure tform1.test;
var
i:integer
value,A:string;
jValue:TJSONValue;
JSonValue:TJSonValue;
Jarray:TJSONArray;
begin
jValue:=RESTResponse1.JSONValue;
Jarray := TJSonObject.ParseJSONValue(value) as tjsonarray;
for i := 0 to Jarray.Count - 1 do
A:=Jarray.items[i].value;
end;
What am I doing wrong?