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

Interoperability with other languages #1770

Closed
omatrot opened this issue Oct 2, 2019 · 3 comments
Closed

Interoperability with other languages #1770

omatrot opened this issue Oct 2, 2019 · 3 comments

Comments

@omatrot
Copy link

omatrot commented Oct 2, 2019

  • Describe what you want to achieve.

I'm calling .dump() on my JSON object to get a string representation. However, double quotes are escaped as we can see in the doc.

This is unrecognized in Javascript or c# for instance. For me quotation marks should only be escaped within a string.

  • Describe what you tried.

I've looked over the documentation but it seems there is no option to suppress those '\'.

I'm using the release branch version of json.hpp.

@nlohmann
Copy link
Owner

nlohmann commented Oct 2, 2019

The output should be fine if you call dump.

@omatrot
Copy link
Author

omatrot commented Oct 2, 2019

I forgot to say that I'm running on Android, the code is compiled with the android NDK.
Let me check by sending the string to the log to confirm.

@omatrot
Copy link
Author

omatrot commented Oct 2, 2019

You're right, the problem is somewhere else up the chain to reach the Javascript.

@omatrot omatrot closed this as completed Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants