Fixed invalid json format

also including the file path in the error, don't think the json error includes that..