Simon Willison’s Weblog


132 items tagged “json”


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

Douglas Crockford

# 21st December 2006, 10:14 am / douglas-crockford, json

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 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 / dave-winer, douglas-crockford, json, xml

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 / json, php, php5

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 / json, ietf, douglas-crockford, rfc

Don’t serve JSON as text/html. Another sneaky XSS trick.

# 5th July 2006, 11:46 pm / security, json, xss, http

Django and JSON. Neat trick to serialize Djange QuerySets as JSON.

# 20th June 2006, 8:16 am / django, json


JSON and Yahoo!’s JavaScript APIs

I had the pleasure yesterday of seeing Douglas Crockford speak about JSON, the ultra-simple data interchange format he has been promoting as an alternative to XML. JSON is a subset of JavaScript, based around that language’s array, string and object literal syntax.

[... 240 words]

Using JSON with Yahoo! Web Services (via) No more cross-domain script access problems.

# 15th December 2005, 11:53 pm / json, web-services, yahoo, ydn

Introducing JSON (via) A data-interchange format based on JavaScript objects and arrays.

# 7th February 2005, 11:42 pm / json