Deron Meranda wrote:
> And even then, we're not just talking about a JSON parser.  We're all
> doing more than that; we're mapping Python to JSON.  And there is
> no definitive spec for that.  Just look at my numbers tests; there are
> a lot of differences in how numeric mappings are done, but yet many
> of them can be arguably "correct" while still doing things
differently.

...which IMO argues that any json implementation that goes in the stdlib
needs to at least allow access to the raw bytes in both directions. For
example, if you really want JSON numerals to become Python decimals, you
shouldn't be forced to lose information just because the json decoder
was only designed to hand you a float. Arbitrary converter plugins would
be icing on the cake. A built in decimal converter would be heaven. :)


Robert Brewer
[EMAIL PROTECTED]

_______________________________________________
Web-SIG mailing list
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: 
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Reply via email to