My files are multiple megabytes and reading them into a string for parsing is not realistic. Any suggestions would be appreciated.use JSON::Parse 'assert_valid_json'; unless (valid_json ($json)) { # do something } eval { assert_valid_json ('["xyz":"b"]'); }; if ($@) { print "Your JSON was invalid: $@\n"; } }
In reply to Verify syntax of large JSON files by ron800
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |