Repository navigation
Issue with convert value string into std::string and vice versa #16
Answered
by
yosh-matsuda
tuongbuimtt
asked this question in
Q&A
|
Sometimes my output JSON has an invalid utf-8 string. Thanks. |
Answered by
yosh-matsuda
Mar 19, 2024
Replies: 2 comments 2 replies
|
Update: will lead to my problem. So I fixed that: And it works. |
2 replies
|
I have a question-answer When I tried: Cause the segment faults error. Update: get helpful. 👍 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
emplacemember function has thecopy_stringspecifier in the 3rd argument.Does this also solve your problem?
json.emplace("sid", sid, copy_string);