Simon Willison’s Weblog

Subscribe

Items tagged json in 2006

Filters: Year: 2006 × json × Sorted by date


Seems easy to me; if you want to serialize a data structure that’s not too text-heavy and all you want is for the receiver to get the same data structure with minimal effort, and you trust the other end to get the i18n right, JSON is hunky-dory.

Tim Bray # 22nd December 2006, 12:47 am

Javascript character set screw-ups (via) Some browsers treat JavaScript files as having the same content-type as the page from which they are linked. This could cause problems with UTF-8 encoded JSON; the workaround is serving up ASCII with unicode escape sequences. # 21st December 2006, 3:20 pm

The good thing about reinventing the wheel is that you can get a round one.

Douglas Crockford # 21st December 2006, 10:14 am

Why JSON isn’t just for JavaScript

Dave Winer’s discovery of JSON (and shock that “it’s not even XML”) has triggered an interesting discussion thread, on his blog and elsewhere. Plenty of people have re-assured him (and themselves) that it’s only used for JavaScript—it’s convenient in the browser but irrelevant elsewhere.

[... 787 words]

I read on Niall Kennedy that del.icio.us has come up with an API that returns a JSON structure, and I figured, sheez it can’t be that hard to parse, so let’s see what it looks like, and damn, IT’S NOT EVEN XML! [...] Who did this travesty? Let’s find a tree and string them up. Now.

Dave Winer # 20th December 2006, 7:21 pm

PHP: JSON Functions. Now bundled in PHP 5. A great way to move data from PHP to some other language. # 3rd November 2006, 12:25 pm

Keep your JSON valid

I’m a big fan of JSON, and it’s great to see it turning up as an output option for so many Web APIs. Unfortunately, many of these APIs are getting the details slightly wrong and in doing so are producing invalid JSON.

[... 311 words]

Proposed RFC for application/json (via) Douglas Crockford is putting JSON through the IETF. # 1st August 2006, 9:29 pm

Don’t serve JSON as text/html. Another sneaky XSS trick. # 5th July 2006, 11:46 pm

Django and JSON. Neat trick to serialize Djange QuerySets as JSON. # 20th June 2006, 8:16 am