Attempt to properly handle JSON files.