www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17557] New: std.json should not do UTF decoding when parsing

https://issues.dlang.org/show_bug.cgi?id=17557

          Issue ID: 17557
           Summary: std.json should not do UTF decoding when parsing
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: dlang-bugzilla thecybershadow.net

UTF decoding is not necessary for parsing JSON, thus when the input is a
string, decoding should not be done.

I.e. this should work:

parseJSON("\"\xFF\"").str == "\xFF");

--
Jun 26 2017