Error Handling in json file.