Switched from as_json to serializable_hash, and rescue MissingAttributeError