We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is an extra backslash when adding nested json.
This operations json foo; foo["key"] ="{\"hey\":\"hou\"}"; std::string result = foo.dump();
json foo;
foo["key"] ="{\"hey\":\"hou\"}";
std::string result = foo.dump();
gives result = "{\"key\":\"{\\\"hey\\\":\\\"hou\\\"}\"}" with an extra backslashes in the nested json.
result = "{\"key\":\"{\\\"hey\\\":\\\"hou\\\"}\"}"
Is this a bug or there is another way to adding nested json ?
PD: This is my first ever github question, sorry in advance about format and so
The text was updated successfully, but these errors were encountered:
You need to explicitly show json type like foo["key"] = json::parse("{\"key\":\"hou\"}");
foo["key"] = json::parse("{\"key\":\"hou\"}");
Sorry, something went wrong.
Yes, I have. Thanks for the help!
No branches or pull requests
There is an extra backslash when adding nested json.
This operations
json foo;
foo["key"] ="{\"hey\":\"hou\"}";
std::string result = foo.dump();
gives
result = "{\"key\":\"{\\\"hey\\\":\\\"hou\\\"}\"}"
with an extra backslashes in the nested json.
Is this a bug or there is another way to adding nested json ?
PD: This is my first ever github question, sorry in advance about format and so
The text was updated successfully, but these errors were encountered: