Skip to content

Escaping string key and values while dumping #4249

Closed Answered by nlohmann
persona94 asked this question in Q&A
Discussion options

You must be logged in to vote

Try

std::cout << json(j.dump()).dump() << std::endl;

May I ask why you need such an escaped string?

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@persona94
Comment options

@nlohmann
Comment options

@persona94
Comment options

@nlohmann
Comment options

Answer selected by persona94
@persona94
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants