April 17, 2013 [Issue 9950] New: std.json should return empty string/array instead of null on empty input | ||||
---|---|---|---|---|
| ||||
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 [Issue 9950] std.json should return empty string/array instead of null on empty input | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | 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: ------- |
Copyright © 1999-2021 by the D Language Foundation