Project

General

Profile

JysonPastFuture » History » Version 1

Alan Kennedy, 2009-04-27 01:11 PM

1 1 Alan Kennedy
h1. The past, present and future of jyson.
2 1 Alan Kennedy
3 1 Alan Kennedy
h2. Past
4 1 Alan Kennedy
5 1 Alan Kennedy
As you may know, "JSON":http://json.org is a *lightweight data-interchange format that is easy for humans to read and write*.
6 1 Alan Kennedy
7 1 Alan Kennedy
I "wrote this JSON codec":http://tech.dir.groups.yahoo.com/group/json-rpc/message/85 when I first came across JSON, and realised that it was the perfect antidote for the complexity and heavy weight of XML, at least in terms of structured data-interchange.
8 1 Alan Kennedy
9 1 Alan Kennedy
I intended to publish it as open source, but didn't get around to doing that until recently.
10 1 Alan Kennedy
11 1 Alan Kennedy
h2. JSON in the python standard library.
12 1 Alan Kennedy
13 1 Alan Kennedy
Back in 2008, I was working on a "commercial contract":http://www.newbay.com/pva.php where we were writing a "REST":http://en.wikipedia.org/wiki/Representational_State_Transfer and "AJAX":http://en.wikipedia.org/wiki/Ajax_(programming) based system in Java and javascript, with both "jython":http://www.jython.org and "groovy":http://groovy.codehaus.org used for testing.
14 1 Alan Kennedy
15 1 Alan Kennedy
I realised then that JSON had become such a commonly used format that it was an important omission that python did not have a JSON codec in the standard library, and "suggested on the python web-sig":http://mail.python.org/pipermail/web-sig/2008-March/003316.html that a JSON codec should be added to the standard library. At the time, there were "multiple competing implementations of JSON codecs for python":http://blog.hill-street.net/?p=7 . 
16 1 Alan Kennedy
17 1 Alan Kennedy
It had been my original hope that the authors of these codecs and other interested parties could "collaborate on forming a standard interface for JSON codecs":http://mail.python.org/pipermail/web-sig/2008-March/003332.html that all python|jython|ironpython JSON codecs could implement, and John Millikin "tried to start such an effort":http://mail.python.org/pipermail/web-sig/2008-March/003332.html .
18 1 Alan Kennedy
19 1 Alan Kennedy
But Guido, the python "BDFL":http://en.wikipedia.org/wiki/BDFL "disagreed":http://mail.python.org/pipermail/web-sig/2008-March/003339.html, and blessed what was at that time the most popular python JSON codec, "simplejson":http://pypi.python.org/pypi/simplejson, written by "Bob Ippolito":http://bob.pythonmac.org/ . Bob contributed simplejson to the python standard library, and it became the "json module in cpython 2.6":http://docs.python.org/library/json.html
20 1 Alan Kennedy
21 1 Alan Kennedy
h2. Future
22 1 Alan Kennedy
23 1 Alan Kennedy
My intention for Jyson is to 
24 1 Alan Kennedy
25 1 Alan Kennedy
  # Modify it so that it complies fully with the API of the "cpython json module":http://docs.python.org/library/json.html 
26 1 Alan Kennedy
  # Contribute it to the jython project so that jython has a fast pure-java implementation of the json module.
Add picture from clipboard (Maximum size: 10 MB)