Skip Menu |
 

This queue is for tickets about the YAML-Syck CPAN distribution.

Report information
The Basics
Id: 60771
Status: resolved
Priority: 0/
Queue: YAML-Syck

People
Owner: TODDR [...] cpan.org
Requestors: TODDR [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.12
Fixed in: (no value)



Subject: Simple numbers (0) are quoted in JSON
Download (untitled) / with headers
text/plain 133b
This new test is failing. I'm pushing the new test to github now. is(Dump(0), '0', '"0" != 0 in JSON. 0 is false "0" is true.');
A fix for this is being released as 1.13
Download (untitled) / with headers
text/plain 268b
On Thu Aug 26 12:42:37 2010, TODDR wrote: Show quoted text
> This new test is failing. I'm pushing the new test to github now. > > is(Dump(0), '0', '"0" != 0 in JSON. 0 is false "0" is true.');
Suggest also adding: is(Dump('0'), '"0"', 'Preserve string "0" from perl to JSON.');
Download (untitled) / with headers
text/plain 243b
in Javascript, "1" + "1" = "11" As a result if it's a perl string we should always leave it as such, not try to take off the quotes. I've added an #ifdef to make this check specific to YAML. JSON will always quote strings. Released as 1.14


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.