J
J
jershell2018-06-24 22:31:51
JSON
jershell, 2018-06-24 22:31:51

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

1 answer(s)
A
Andrey, 2018-06-24
@VladimirAndreev

Are JSON.parse sources closed?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question