Is there a simple way to check whether the json string to be parsed is valid? #287
-
Something like; std::string some_string = "Hello world!"
jsoncons::is_valid(some_string); // bool
// output: false Or maybe by error handling? |
Beta Was this translation helpful? Give feedback.
Answered by
danielaparker
Dec 1, 2020
Replies: 1 comment
-
The closest would be
That parses and validates, but doesn't return anything. See Validate JSON without incurring parse exceptions |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Cuadrix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The closest would be
That parses and validates, but doesn't return anything. See Validate JSON without incurring parse exceptions