RFC: std.json sucessor

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sat Aug 23 10:46:04 PDT 2014


On 8/23/2014 10:42 AM, Sönke Ludwig wrote:
> Am 23.08.2014 19:38, schrieb Walter Bright:
>> On 8/23/2014 9:36 AM, Sönke Ludwig wrote:
>>> input types "string" and "immutable(ubyte)[]"
>>
>> Why the immutable(ubyte)[] ?
>
> I've adopted that basically from Andrei's module. The idea is to allow
> processing data with arbitrary character encoding. However, the output will
> always be Unicode and JSON is defined to be encoded as Unicode, too, so that
> could probably be dropped...

I feel that non-UTF encodings should be handled by adapter algorithms, not 
embedded into the JSON lexer, so yes, I'd drop that.


More information about the Digitalmars-d mailing list