Thread overview
[Issue 15510] json shouldn't escape forward slash by default
Mar 17, 2016
Andre
Dec 17, 2022
Iain Buclaw
Mar 29, 2024
Tomoya Tanjo
March 17, 2016
https://issues.dlang.org/show_bug.cgi?id=15510

Andre <andre@s-e-a-p.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andre@s-e-a-p.de

--- Comment #1 from Andre <andre@s-e-a-p.de> ---
Everywhere I use toString method I also add the replace(`\/`,`/`) because for my use cases the \/ escaping is just wrong.

I am not sure whether the default behavior should be changed because this could silently introduce new behaviors in existing programs but there should be definitely a new option "noForwardSlashEncoding" in JSONOptions.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=15510

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
March 29, 2024
https://issues.dlang.org/show_bug.cgi?id=15510

Tomoya Tanjo <ttanjo@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ttanjo@gmail.com

--- Comment #2 from Tomoya Tanjo <ttanjo@gmail.com> ---
Can we close this issue as resolved?
Now we can use JSONOptions.doNotEscapeSlashes to change its behavior.

- https://dlang.org/phobos/std_json.html#.JSONOptions.doNotEscapeSlashes

--
December 13
https://issues.dlang.org/show_bug.cgi?id=15510

--- Comment #3 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/17741

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--