JysonPastFuture
Version 1 (Alan Kennedy, 04/27/2009 01:11 pm)
| 1 | 1 | h1. The past, present and future of jyson. |
|
|---|---|---|---|
| 2 | 1 | ||
| 3 | 1 | h2. Past |
|
| 4 | 1 | ||
| 5 | 1 | 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 | ||
| 7 | 1 | 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 | ||
| 9 | 1 | I intended to publish it as open source, but didn't get around to doing that until recently. |
|
| 10 | 1 | ||
| 11 | 1 | h2. JSON in the python standard library. |
|
| 12 | 1 | ||
| 13 | 1 | 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 | ||
| 15 | 1 | 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 | ||
| 17 | 1 | 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 | ||
| 19 | 1 | 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 | ||
| 21 | 1 | h2. Future |
|
| 22 | 1 | ||
| 23 | 1 | My intention for Jyson is to |
|
| 24 | 1 | ||
| 25 | 1 | # Modify it so that it complies fully with the API of the "cpython json module":http://docs.python.org/library/json.html |
|
| 26 | 1 | # Contribute it to the jython project so that jython has a fast pure-java implementation of the json module. |