Skip to content

Conversation

@ali-ghazi78
Copy link

There was a slash missing in the Readme file. cjson.encode_escape_forward_slash(false)

@doujiang24
Copy link
Member

I don't think it needs to change.
In doc, \/ is a plain string, does not need to escape.

@doujiang24
Copy link
Member

It just matches the raw result. I don't think it makes people confused.

$ resty -e 'ngx.say(require "cjson" .encode("/"))'
"\/"

@doujiang24
Copy link
Member

okay, my mistake.
Markdown render wants to escape too. It renders as the following before the patch.
image

@doujiang24 doujiang24 merged commit 3d93d29 into openresty:master Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants