This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author anders.rundgren.net@gmail.com
Recipients anders.rundgren.net@gmail.com, barry, bob.ippolito, eli.bendersky, ethan.furman, ncoghlan, pitrou, rhettinger
Date 2014-12-30.09:16:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1419930982.88.0.898521634566.issue23123@psf.upfronthosting.co.za>
In-reply-to
Content
> Antoine Pitrou added the comment:
> 
> "To cope with this potential problem, compliant parsers must preserve the original textual representation of properties internally in order to support JCS normalization requirements"
> 
> That sounds ridiculous. Did someone try to reason the "IETF guys"?:)

The alternative is either doing what Bob suggested which is almost the same as writing a new parser or take the IETF route and shroud the message payload in base64.

So all solutions are "by definition" baaaaaaaaaaaaaaaad :-)

FWIW my super-bad solution has the following compatibility issues:
- Whitespace: None, all parsers can "stringify", right?
- Escaping: None, all parsers MUST do it to follow the JSON spec.
- Property order: A problem in some parsers.  If you take a look on stackoverflow lots of folks request that insertion/reader order should be honored since computers <> humans.  Fixed in Python. Works in browsers as well.
- Floating point: an almost useless JSON feature anyway, it doesn't work for crypto-numbers or money.  It is "only" a validation problem though.  Now fixed in Python.

http://www.ietf.org/mail-archive/web/acme/current/msg00200.html
History
Date User Action Args
2014-12-30 09:16:22anders.rundgren.net@gmail.comsetrecipients: + anders.rundgren.net@gmail.com, barry, rhettinger, bob.ippolito, ncoghlan, pitrou, eli.bendersky, ethan.furman
2014-12-30 09:16:22anders.rundgren.net@gmail.comsetmessageid: <1419930982.88.0.898521634566.issue23123@psf.upfronthosting.co.za>
2014-12-30 09:16:22anders.rundgren.net@gmail.comlinkissue23123 messages
2014-12-30 09:16:22anders.rundgren.net@gmail.comcreate