News

For example, a call to /api/default.json should return data from the API method in JSON format, whereas a call to /api/default.xml should return the data in XML format.
The debate about JSON vs. XML as a data interchange format has begun in blogspace, following JSON inventor and architect at Yahoo Douglas Crockford's talk at XML 2006 JSON, the fat-free alternative to ...
It's a very simple example, but the same basic approach could be used to build virtually any kind of election result visualization tool. #!/usr/bin/env python import simplejson, urllib2 ...