-
Hi All, I am writing an API where the request will contain a JSON string. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
|
Beta Was this translation helpful? Give feedback.
-
If you use a file, for an unknown reason, the file variabele can not be used twice after each other in parse or accept. The second time an empty file is reading.
[json.exception.parse_error.101] parse error at line 1, column 1: attempting to parse an empty input; check that your input string or stream contains the expected JSON |
Beta Was this translation helpful? Give feedback.
accept
is to check validity, so you only get a boolean as result.parse
is to get abasic_json
object from the input.