Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How should strings be escaped? #2155

Closed
asfarley opened this issue May 31, 2020 · 1 comment
Closed

How should strings be escaped? #2155

asfarley opened this issue May 31, 2020 · 1 comment
Labels
kind: question state: needs more info the author of the issue needs to provide more details

Comments

@asfarley
Copy link

Hi,

It looks like the function escape_string no longer exists in json.hpp. What would you suggest for users to escape a string (e.g. containing curly-braces or control characters) for input into a JSON string field?

@nlohmann
Copy link
Owner

nlohmann commented Jun 1, 2020

You do not need to take care about escaping strings. Or can you provide a code example where this would be required?

@nlohmann nlohmann added the state: needs more info the author of the issue needs to provide more details label Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: question state: needs more info the author of the issue needs to provide more details
Projects
None yet
Development

No branches or pull requests

2 participants