Answer the question
In order to leave comments, you need to log in
Where can I find examples of invalid json?
I am writing tests for the JSON parser. Checking for exceptions. But all cases of invalid json according to RFC4627 and RFC7159 are needed. There is documentation, what are the errors
https://developer.mozilla.org/en-US/docs/Web/JavaS...
But unfortunately I don't understand how to get them,
especially like here, what's the difference?
SyntaxError: JSON.parse: unterminated string literal
and
SyntaxError
: JSON.parse: unterminated string
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question