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

bachmeier no at spam.net
Mon Feb 21 03:42:55 UTC 2022


I tried this

```
import std.json, std.stdio;

void main() {
     writeln(parseJSON(`{"a": "path/file"}`, 
JSONOptions.doNotEscapeSlashes));
}
```

but the output is

```
{"a":"path\/file"}
```

Is there a way to avoid the escaping of the forward slash? Is 
there some reason I should want to escape the forward slash?


More information about the Digitalmars-d-learn mailing list