April 17, 2013
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


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-04-17 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: -------
April 17, 2013
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


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-04-17 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: -------