How to convert json object to string [Duplicate?] #2473
GuckTubeYT
started this conversation in
General
Replies: 2 comments
-
If you want a serialization, call |
Beta Was this translation helpful? Give feedback.
0 replies
-
its work, thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to convert json object to string?
when i cout like this
json j; j["hello"] = "hi"; cout << j << endl;
its work, but when i do string like this
json j; j["hello"] = "hi"; string je = j; cout << je << endl;
i got an error message = [json.exception.type_error.302] type must be string, but is object
Beta Was this translation helpful? Give feedback.
All reactions