Uses accessor for data for to_hash,to_json_hash for Collection.