Subject: | Fwd: JSON::Syck bug |
Date: | Fri, 31 Mar 2006 13:28:15 +0900 |
To: | bug-JSON-Syck [...] rt.cpan.org |
From: | "Tatsuhiko Miyagawa" <miyagawa [...] gmail.com> |
Show quoted text
---------- Forwarded message ----------
From: Andreas Schiffler <aschiffler@ferzkopp.net>
Date: Mar 7, 2006 3:43 AM
Subject: JSON::Syck bug
To: miyagawa@gmail.com
Hi there,
First of all, thanks for your CPAN module.
I think Ifound a bug - if I evaluate this JSON string
{"i":{"cid":"123","sid":"123","c":"","v":"2.0","m":"h01iSTI5","up":""},"e":{"m":"click","x":109,"y":71,"dt":1850,"v":0,"t":-1,"c":-1}}
to a perl variable $h, the -1 numbers at the end (t and c) are converted
to a 1 (i.e. the minus is ignored)
i.e. $h->{'e'}->{'t'} and $h->{'e'}->{'c'} are 1 not -1.
The specs on json.org allow my syntax above for nonquoted numbers (it
was generated using the standard json.js code).
Best regards
Andreas
--
Tatsuhiko Miyagawa