Simon Willison’s Weblog

Subscribe
Atom feed for json

141 items tagged “json”

2007

Security; AJAX; JSON; Satisfaction. The JSON attack I linked to earlier only works against raw arrays, which technically aren’t valid JSON anyway.

# 6th March 2007, 8:06 am / json, security, xss

JSON is not as safe as people think it is. Joe Walker reminds us that even authenticated JSON served without a callback or variable assignment is vulnerable to CSRF in Firefox, thanks to that browser letting you redefine the Array constructor.

# 5th March 2007, 10:51 pm / joe-walker, json, csrf, security

json-taglib. Because JSON just doesn’t have enough angle brackets.

# 4th March 2007, 8:52 pm / json, xml, jsp

Safe JSON (via) Subtle but important point about JSON APIs: you shouldn’t use a callback or variable assignment for JSON incorporating private user data, especially if it’s at a predictable URL.

# 2nd March 2007, 1:11 pm / json, security

Badge Any RSS Feed With Yahoo! Pipes. Smart hack from Kent Brewster. Uses Yahoo! Pipes’ JSON output plus a few lines of JavaScript to create a badge from any RSS feed.

# 16th February 2007, 8:21 am / badger, pipes, yahoo, json, rss, kentbrewster

Apache Solr 1.1. Solr is the search Web Service built on top of Lucene. The latest release introduces JSON, Python and Ruby response formats in addition to XML.

# 13th January 2007, 1:16 am / json, python, ruby, xml, webservice, search, lucene, solr

Why doesn’t Python have more data format readers in the stdlib? I for one would love to see simplejson included in the standard library, with or without a C implementation.

# 8th January 2007, 1:03 am / python, json, stdlib

2006

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 / tim-bray, xml, json

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 / json, javascript, unicode

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

2005

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