I'm serializing object let's call it
to Json, one of fields in
is type of object (here i assign different classes instances).
public object value
So after deserialization I get
I understand why this works that way, so my question is what is the best way to create propper class instance according to this
I can create new instane and assign propertieces:
x = value["x"],
y = value["y"],
But is there any beter way to achieve that?