JSON overview and demo
-
Upload
flatiron-school -
Category
Technology
-
view
83 -
download
1
description
Transcript of JSON overview and demo
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