Currently validjson reads all of a file or stream into memory before validating it.
Because the native JSON.parse only allow for well structured JSON, there is no other way to do it.
Either use another JSON parser or implement one.
Another JSON parser should also allow for better error messages and error positions.
Currently
validjsonreads all of a file or stream into memory before validating it.Because the native
JSON.parseonly allow for well structured JSON, there is no other way to do it.Either use another JSON parser or implement one.
Another JSON parser should also allow for better error messages and error positions.