Skip to content

304, "cannot use at() with "type_name" - Why cant this string be parsed? #2407

Answered by nlohmann
dominique120 asked this question in Q&A
Discussion options

You must be logged in to vote

You did not parse the string, but created a JSON value of type text. Use

auto j = nlohmann::json::parse(json_raw);

instead.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@nlohmann
Comment options

@dominique120
Comment options

@nlohmann
Comment options

@dominique120
Comment options

@nlohmann
Comment options

Answer selected by dominique120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants