304, "cannot use at() with "type_name" - Why cant this string be parsed? #2407
Answered
by
nlohmann
dominique120
asked this question in
Q&A
-
I'm trying to parse this json string but I keep getting this error
I'm not sure why it never gives me the full error in Visual Studio. I'm using the default methods from the macro. This is the code:
When I use my own parser with the [] operator with a string argument(305). Whats going on there? I'm using visual studio 2019 and the latest version of this library from vcpkg. |
Beta Was this translation helpful? Give feedback.
Answered by
nlohmann
Sep 27, 2020
Replies: 1 comment 6 replies
-
You did not parse the string, but created a JSON value of type text. Use auto j = nlohmann::json::parse(json_raw); instead. |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
dominique120
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You did not parse the string, but created a JSON value of type text. Use
auto j = nlohmann::json::parse(json_raw);
instead.