-
Hi, Reading a json field as string is done like this Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
nlohmann
Oct 5, 2020
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
nlohmann
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
operator[]
returns references of typejson
. Somessage
inauto message = json["details"]
isjson
, but inauto message = json["details"].get<std::string>();
isstd::string
.