Catch errors when parsing the *.json files