I work in a language called AL for work but we have JSON Objects, Arrays, etc..
I'm querying this api: http://citibikenyc.com/stations/json and I have the result stored in a text variable.
My objective is to store the ID and Station Names in a separate table. I can't figure out how I should iterate through all of the elements for ID and stationName.
I understand the path will be stationBeanList[0].id and increment the 0 every time I just don't know how to write it.
if Client.Get(url, Response) then begin
if Response.IsSuccessStatusCode then begin
Response.Content.ReadAs(Json);
J.ReadFrom(Json);
JsonBuffer.ReadFromText(Json);
JsonObj.ReadFrom(Json);
// How to iterate though all of the Elements
end;
end;
Any help or suggestions is appreciated.