Open beloso opened 7 years ago
I have two possible JSON payloads for a given object.
In one payload there is a key A In another payload there is a key B
A
B
I want to use the same object for both, is it possible to tell marshal that the value for property C can be in either A or B?
C
I have two possible JSON payloads for a given object.
In one payload there is a key
A
In another payload there is a keyB
I want to use the same object for both, is it possible to tell marshal that the value for property
C
can be in eitherA
orB
?