Bug on read function

If the JSON file has a format error, was deleted instead of throw the error message.