|
Re: Announcement: Flickr now supports JSON and serialized PHP: msg#00011web.flickr.api
If you call your request with nojsoncallback=1, you can parse it as YAML like so (Ruby example - response is the flickr response): YAML::load(response.gsub(/(.):(.)/, '\1: \2')) On 10/2/06, Matthew Smillie <m.b.smillie-Y3tGgqFSo3OFxr2TtlUqVg@xxxxxxxxxxxxxxxx> wrote: > On Oct 1, 2006, at 4:18, Erik Kastner wrote: > > > Other format ideas: > > YAML > > php-serialized > > csv > > SQL (does anyone use this?) > > > > basically, all the formats that the feeds are available in. > > Well, you can parse JSON as YAML with (as far as I'm aware) only one > exception: > > (valid JSON, valid YAML) > "foo": "bar" > > (still valid JSON, invalid YAML) > "foo":"bar" > > Flickr's examples are using the YAML-compatible spacing. The > jsonFlickrApi({...}); wrapper isn't regular JSON (and hence not YAML > either), but you can eliminate that with the callback parameter > (check the bottom of the docs) or even better, define your own > callback function. > > matt. > > > > Yahoo! Groups Links > > > > > > > > > > > > Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/yws-flickr/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/yws-flickr/join (Yahoo! ID required) <*> To change settings via email: mailto:yws-flickr-digest-hHKSG33TihhbjbujkaE4pw@xxxxxxxxxxxxxxxx mailto:yws-flickr-fullfeatured-hHKSG33TihhbjbujkaE4pw@xxxxxxxxxxxxxxxx <*> To unsubscribe from this group, send an email to: yws-flickr-unsubscribe-hHKSG33TihhbjbujkaE4pw@xxxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | invalid frob, always: 00011, millicentisthefuture |
|---|---|
| Next by Date: | Please Help me with Flikcr API.: 00011, kalyan varma kakarlapudi |
| Previous by Thread: | Re: Announcement: Flickr now supports JSON and serialized PHPi: 00011, Matthew Smillie |
| Next by Thread: | RE: Re: Information For Developers about app usage: 00011, Stewart Butterfield |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |