Skip to content

to string and back results in different json #2435

Answered by howudodat
howudodat asked this question in Q&A
Discussion options

You must be logged in to vote

oops, I see that simply constructing a json object with a string crates a string json object and doesn't actually parse the json

	string s = "Some json";
	json j1(s);				<<<<< Creates a json object of string 
	json j1 = json::parse(s);		<<<<< Parses the json

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by howudodat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant