0
I have the following Json file.
{"symbol":"KYCT","status":"ACTIVE"},{"symbol":"UNDA","status":"ACTIVE"},
{"symbol":"QUIA","status":"ACTIVE"}
I have the following reading routine that loads this file :
JsonValue := TJSONObject.ParseJSONValue(lResponse.DataString);
So far so good .
So I can get the values.
JsonValue.GetValue<string>('symbols[0].symbol')
JsonValue.GetValue<string>('symbols[0].status')
But it turns out the position [0]
, is the first position Symbol
that’s in the file, and I’ll need to go through all the Symbols to get the property status
, but I can’t imagine how I could go through this text aquivo, analyzing all of us.
I did some research but I couldn’t find anything, can help me please ?
Thanks, I did it here and it all worked out !!!
– Mano
Mark the answer as correct, so it helps in future research
– Junior Moreira