I'm trying to parse JSON string (http://pastebin.com/zXn8pwtL):
sListing
contains JSON string
jsObj: TJSONObject;
jsItem, jsElem, jsAsserts: TJSONValue;
...
jsObj := TJSONObject.ParseJSONValue(sListing) as TJSONObject;
jsAsserts := TJSONObject(TJSONObject(jsObj.Get('assets').JsonValue).Get('730').JsonValue).Get('2').JsonValue;
for jsElem in TJSONArray(jsAsserts) do
WriteLn(jsElem.ToString);
How can I get all values from jsElem->descriptions? I've tried to enum all:
for jsItem in TJSONArray(jsElem) do
WriteLn(jsItem.ToString);
But got EAccessViolation Read of address 00000001