Improved serialization of object field