Check ferror if fread call fails in json_parse_file
Merge pull request #10 from spt5007/master

Check ferror if fread call fails in json_parse_file