def self.json_create(o)
role = new
role.name(o["name"])
role.description(o["description"])
role.default_attributes(o["default_attributes"])
role.override_attributes(o["override_attributes"])
env_run_list_hash = {"_default" => (o.has_key?("run_list") ? o["run_list"] : o["recipes"])}
if o["env_run_lists"]
env_run_list_hash.merge!(o["env_run_lists"])
end
role.env_run_lists(env_run_list_hash)
role.couchdb_rev = o["_rev"] if o.has_key?("_rev")
role.index_id = role.couchdb_id
role.couchdb_id = o["_id"] if o.has_key?("_id")
role
end