-
I would like to do the same as |
Beta Was this translation helpful? Give feedback.
Answered by
nlohmann
Dec 28, 2020
Replies: 1 comment 1 reply
-
This is currently not possible out of the box. You would need to serialize to a auto str = j.dump();
std::vector<std::uint8_t> data(str.begin(), str.end()); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
db4
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is currently not possible out of the box. You would need to serialize to a
std::string
and then create a vector out of that: