Bug 17557 – std.json should not do UTF decoding when parsing
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-06-26T10:00:51Z
Last change time
2018-01-05T13:29:33Z
Keywords
pull
Assigned to
No Owner
Creator
Vladimir Panteleev
Comments
Comment #0 by dlang-bugzilla — 2017-06-26T10:00:51Z
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");
Comment #1 by dlang-bugzilla — 2017-06-26T10:03:38Z