Currently, serializing then deserializing an object where multiple properties reference the same object will yield separate objects:
@JsonObject
class Person { }
@JsonObject
class Company {
@JsonMember boss: Person;
@JsonMember owner: Person;
}
var company = new Company();
company.boss = company.owner = new Person();
var ripoff = TypedJSON.parse(TypedJSON.stringify(company), Company);
ripoff.boss === ripoff.owner; // false
This feature is planned to be supported in the future.
Currently, serializing then deserializing an object where multiple properties reference the same object will yield separate objects:
This feature is planned to be supported in the future.