www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9950] New: std.json should return empty string/array instead of null on empty input

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

           Summary: std.json should return empty string/array instead of
                    null on empty input
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: pull
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com



08:44:01 PDT ---
These should pass:

auto str = parseJSON(`""`).str;
assert(str !is null);
assert(str == "");

auto arr = parseJSON(`[]`).array;
assert(array !is null); 
assert(array.length == 0)

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


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



08:44:15 PDT ---
https://github.com/D-Programming-Language/phobos/pull/1239

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