Issue with convert value string into std::string and vice versa #16
-
Sometimes my output JSON has an invalid utf-8 string.
Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Update:
will lead to my problem. So I fixed that:
And it works. |
Beta Was this translation helpful? Give feedback.
-
I have a question-answer When I tried:
Cause the segment faults error. Update:
get helpful. 👍 |
Beta Was this translation helpful? Give feedback.
The
emplace
member function has thecopy_string
specifier in the 3rd argument.Does this also solve your problem?
json.emplace("sid", sid, copy_string);