json overview and demo

Post on 08-Sep-2014

93 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

Presented by Troy Barrett and Zachary Drossman on July 15, 2014 at The Flatiron School.

TRANSCRIPT

Parsing JSONA proof of concept tool for devs

Troy BarrettZachary Drossman

Who is J SON?

Wrong question, son.

JSON: not the bring home for dinner type.

Interpreting JSON { items = ( { accessInfo = { accessViewStatus = NONE; country = US; embeddable = 0; epub = { isAvailable = 0; }; pdf = { isAvailable = 0;}; publicDomain = 0; quoteSharingAllowed = 0; textToSpeechPermission = ALLOWED; viewability = "NO_PAGES"; webReaderLink = "http://…; };

};searchInfo = {

textSnippet = "Harry Potter is an ordinary boy ….”; };

selfLink = "https:…”;volumeInfo = { authors = ("J. K. Rowling”); averageRating = "4.5"; canonicalVolumeLink = "http://…"; categories = ("Juvenile Fiction”); contentVersion = "preview-1.0.0"; description = "Harry …"; imageLinks = { smallThumbnail = "http://… "; thumbnail = "http://…"; }; industryIdentifiers = ({ identifier = 0747532699; type = "ISBN_10”; …

Interpreting JSON { items = ( { accessInfo = { accessViewStatus = NONE; country = US; embeddable = 0; epub = { isAvailable = 0; }; pdf = { isAvailable = 0;}; publicDomain = 0; quoteSharingAllowed = 0; textToSpeechPermission = ALLOWED; viewability = "NO_PAGES"; webReaderLink = "http://…; };

};searchInfo = {

textSnippet = "Harry Potter is an ordinary boy ….”; };

selfLink = "https:…";volumeInfo = { authors = ("J. K. Rowling”); averageRating = "4.5"; canonicalVolumeLink = "http://…"; categories = ("Juvenile Fiction”); contentVersion = "preview-1.0.0"; description = "Harry …"; imageLinks = { smallThumbnail = "http://… "; thumbnail = "http://…"; }; industryIdentifiers = ({ identifier = 0747532699; type = "ISBN_10”; …

So if we wanted to use this data...

• NSString *bookISBN_ID = [@“items”][#][@“volumeInfo”][@“industryIdentifiers”][#][@“identifier”]

What if there was a better way?

Listen to our DEMO.

sO let’s leaRn suMthin

today

To infinity

and beyond!

Working with storyboards

Breaking the code

top related