Closed spacewander closed 4 years ago
I'm not sure about this one since it leads to invalid JSON output. See json.org for the syntax spec for JSON.
OK, I had a closer look and it seems escaping /
is optional, not mandatory. Then it's fine.
@agentzh Also add doc for the new method.
Thanks @spacewander this looks better :+1: , I'll close my PR.
This PR is based on #59. Thanks @exjesper for the original patch. I just remove the detection from the hot path to make it a little faster when the escape is disabled.