* Throw an invalid argument error if the hero JSON is invalid.