javascript - Simple Json format when requesting google spreadsheet -
i using google spreadsheet api read google sheet in javascript. need read google sheet
and result this:
result = [ { title : 'item1', description : 'the items in list read dynamically external file now. can specify title, description , url of icon image.', icon : 'http://icons.iconarchive.com/icons/dapino/medical/128/medical-suitecase-icon.png' }, { title : 'item2', description : 'some long description check how text appear if long in info list view. should wrap automatically , height of row should adjusted needed. add more worlds.', icon : 'http://icons.iconarchive.com/icons/dapino/summer-holiday/128/compass-icon.png' }, { title : 'item3', description : 'the pc icon test icon. can replaced image local or on server. used 1 testing.', icon : 'http://icons.iconarchive.com/icons/gabriel-leblanc/historic-mac/128/ibook-g4-12-icon.png' }, { title : 'item4', description : 'adding final item out of range of view. have scroll see it. (at least on iphone)', icon : 'http://icons.iconarchive.com/icons/double-j-design/ravenna-3d/128/v-card-icon.png' } ];
when request sheet json using url jsonp:
i messy json . there way can modify url return similar want? or simpler. finding hard extract values returned json
tabletop.js , more advanced sheetsee.js job efficiently.
Comments
Post a Comment