Note that there are some explanatory texts on larger screens.

plurals
  1. PONeed assistance getting (parsing?) these JSON data into Xcode
    text
    copied!<p>Before I start, I would like to say that I'm quite a newbie to Xcode and the C Language, and I'm trying my best to learn as much as I can. I have researched for about 2 days now before posting this question but could not find anything helpful :( I am genuinely stuck and would appreciate ANY help. This is most likely a very <strong>simple</strong>/basic question:</p> <p>Basically, I am trying to get this data (<a href="http://countdown.api.tfl.gov.uk/interfaces/ura/instant_V1?StopCode1=59581&amp;DirectionID=1&amp;VisitNumber=1&amp;ReturnList=StopCode1,StopPointName,LineName,DestinationText,EstimatedTime,MessageUUID,MessageText,MessagePriority,MessageType,ExpireTime" rel="nofollow">LINK</a>) which is apparrently in UTF-8 JSON and display it on a simple label on Xcode. However, I do not know how to get that data and parse it at all. I've followed a <a href="http://www.raywenderlich.com/5492/working-with-json-in-ios-5" rel="nofollow">tutorial online</a> with success, but that deals with JSON objects rather than arrays (which I think I am dealing with).</p> <p>I would HIGHLY appreciate it if someone could extract/parse the data from the first link given into a basic label on Xcode in code format.Preferably with commentary on what most lines of code are doing for my own benefit, as this would really help me understand how it works. Hopefully from there, I would be able to make good progress.</p> <p>Once again this is highly appreciated!</p> <p>Thank YOu.</p> <p>Here's a sample of the JSON URL for convenience if you don't want to click the link:</p> <pre><code>[4,"1.0",1343920773538] [1,"Spring Gardens","59581","275","Barkingside",1343920940000,1343920940000] [1,"Spring Gardens","59581","275","Barkingside",1343921717000,1343921717000] [1,"Spring Gardens","59581","549","Loughton",1343921858000,1343921858000] [1,"Spring Gardens","59581","275","Barkingside",1343922204000,1343922204000] [2,"Spring Gardens","59581","8a56a0ab37b72b400137cb7cfd954038_29222",0,3,"Bus routes serving this stop are subject to change during the Olympics and Paralympics games. For more information visit www.tfl.gov.uk/buses for more information.",1344668400000] </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload