3 ms·
I like the fact that you can annotate objects as well, not just literals. So this is valid: animal: Tiger:: { gender: 'F', weight: 450 }
by petilon 5y ago
I like the fact that you can annotate objects as well, not just literals. So this is valid:
animal: Tiger:: {
gender: 'F',
weight: 450
}
This solves the inheritance problem, i.e., if you have multiple subclasses how do you know which type to deserialize as?
- plandis 5y agoI believe that this is exactly how Jackson serialized Ion handles subtype polymorphism.