[Web-SIG] Time a for JSON parser in the standard library?

2008-03-10 Thread Alan Kennedy
Dear all, Given that 1. Python comes with batteries included 2. There is a standard library re-org happening because of Py3K 3. JSON is now a very commonly used format on the web Is it time there was a JSON codec included in the python standard library? (If XML is already supported, I see no

Re: [Web-SIG] Time a for JSON parser in the standard library?

2008-03-10 Thread Mark Ramm
Is it time there was a JSON codec included in the python standard library? I would definitely support the incusion of a JSON library in the standard lib. And, I think that it should be simplejson which is used by TurboGears, Pylons, and bundled with Django. Choosing a Python JSON

Re: [Web-SIG] Time a for JSON parser in the standard library?

2008-03-10 Thread Jodok Batlogg
On 10.03.2008, at 14:37, Mark Ramm wrote: Is it time there was a JSON codec included in the python standard library? I would definitely support the incusion of a JSON library in the standard lib. And, I think that it should be simplejson which is used by TurboGears, Pylons, and bundled

Re: [Web-SIG] Time a for JSON parser in the standard library?

2008-03-10 Thread Jonathan Ellis
On Mon, 10 Mar 2008 09:37:35 -0400, Mark Ramm [EMAIL PROTECTED] said: Is it time there was a JSON codec included in the python standard library? I would definitely support the incusion of a JSON library in the standard lib. And, I think that it should be simplejson which is used by

Re: [Web-SIG] Time a for JSON parser in the standard library?

2008-03-10 Thread Guido van Rossum
On Mon, Mar 10, 2008 at 9:08 AM, Jonathan Ellis [EMAIL PROTECTED] wrote: On Mon, 10 Mar 2008 09:37:35 -0400, Mark Ramm [EMAIL PROTECTED] said: Is it time there was a JSON codec included in the python standard library? I would definitely support the incusion of a JSON library in the

Re: [Web-SIG] Time a for JSON parser in the standard library?

2008-03-10 Thread Massimo Di Pierro
I agree. simplejson is used by web2py as well. Massimo On Mar 10, 2008, at 8:37 AM, Mark Ramm wrote: Is it time there was a JSON codec included in the python standard library? I would definitely support the incusion of a JSON library in the standard lib. And, I think that it should be

Re: [Web-SIG] Time a for JSON parser in the standard library?

2008-03-10 Thread James Bennett
On Mon, Mar 10, 2008 at 8:37 AM, Mark Ramm [EMAIL PROTECTED] wrote: I would definitely support the incusion of a JSON library in the standard lib. And, I think that it should be simplejson which is used by TurboGears, Pylons, and bundled with Django. I'd tentatively agree, though I recall

Re: [Web-SIG] Time a for JSON parser in the standard library?

2008-03-10 Thread Guido van Rossum
On Mon, Mar 10, 2008 at 7:23 PM, James Bennett [EMAIL PROTECTED] wrote: On Mon, Mar 10, 2008 at 8:37 AM, Mark Ramm [EMAIL PROTECTED] wrote: I would definitely support the incusion of a JSON library in the standard lib. And, I think that it should be simplejson which is used by

Re: [Web-SIG] Time a for JSON parser in the standard library?

2008-03-10 Thread Graham Dumpleton
On 11/03/2008, James Bennett [EMAIL PROTECTED] wrote: On Mon, Mar 10, 2008 at 8:37 AM, Mark Ramm [EMAIL PROTECTED] wrote: I would definitely support the incusion of a JSON library in the standard lib. And, I think that it should be simplejson which is used by TurboGears, Pylons, and

Re: [Web-SIG] Time a for JSON parser in the standard library?

2008-03-10 Thread Mark Ramm
Well, so fix this. How hard can it be? A google search for jsonlib rfc turns up this article: http://jmillikin.blogspot.com/2008/02/python-json-catastrophe.html And it looks like the two issues with simplejson are: 1) decoding JSON with unicode code-points outside the Basic Multilingual

Re: [Web-SIG] Time a for JSON parser in the standard library?

2008-03-10 Thread Massimo Di Pierro
It would also be nice to have a common interface to all modules that do serialization. For example pickle, cPickle, marshall has dumps, so json should also have dumps. Massimo On Mar 10, 2008, at 9:51 PM, Mark Ramm wrote: Well, so fix this. How hard can it be? A google search for

Re: [Web-SIG] Time a for JSON parser in the standard library?

2008-03-10 Thread Titus Brown
On Mon, Mar 10, 2008 at 11:55:04PM -0500, Massimo Di Pierro wrote: - It would also be nice to have a common interface to all modules that - do serialization. For example pickle, cPickle, marshall has dumps, so - json should also have dumps. Doesn't it? Or did you want something additional?