Is there a way to not escape slashes when parsing JSON?

bachmeier no at spam.net
Mon Feb 21 17:34:40 UTC 2022


On Monday, 21 February 2022 at 09:04:06 UTC, bauss wrote:

> Why are we even escaping them by default, it should be the 
> other way around, that slashes are only escaped if you ask for 
> it; that's how it literally is in almost every JSON library.
>
> Escaping slashes as a default is a huge mistake IMHO.

I seldom work with JSON data, but I may have to look for an 
alternative JSON library for D. std.json is not the most fun 
independent of this issue.


More information about the Digitalmars-d-learn mailing list