attributes serialization made into an object instead of a list