我在解析Json中的数组时遇到问题。杰森就是这个例子:
[
[
A1,A2,A3,],[
B1,B2,B3,
以此类推。
如果我尝试解析它,总是会出现访问冲突错误:
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;
我在做什么错了?