zaach / jsonlint

A JSON parser and validator with a CLI.
http://zaach.github.com/jsonlint/
1.93k stars 417 forks source link

support module interface reading file paths #112

Open CADBOT opened 6 years ago

CADBOT commented 6 years ago

Added fix for issue 110

CADBOT commented 6 years ago

If you like the change I can add tests too

prantlf commented 5 years ago

This change breaks the parse method. If a string like "./x" is passed to it, the method should fail with an invalid JSON input. Not trying to be smart and trying to handle the input string as a file path.