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: nob...@puremagic.com ReportedBy: andrej.mitrov...@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrov...@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: -------