www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10776] New: std.json parseJSON has a bug.

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10776

           Summary: std.json  parseJSON has a bug.
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: khurshid.normuradov gmail.com



06:03:13 PDT ---
I think that, this code must be throw, but it's success run.

import std.json;
import std.stdio : writeln;

void main()
{
 ////////////////////////// leading spaces doesn't skip between 1 and E.
   auto json = parseJSON(`{ "throwable_one" : 1             .E    +1 }`);


   writeln( toJSON(&json) );
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 08 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10776


hsteoh quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh quickfur.ath.cx



This violates RFC 4627 (http://www.ietf.org/rfc/rfc4627.txt), so it's
definitely a bug in std.json.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 17 2013