You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deserializing JSON whose bar value is a string, it works perfectly fine. However, when the JSON's bar field is an array, I get the following error:
I have an outer type
ContainerType
whose inner keybar
can be either a string or a string array:When deserializing JSON whose
bar
value is a string, it works perfectly fine. However, when the JSON'sbar
field is an array, I get the following error:On the other hand, when I try to deserialize that value directly by substituting the container type definition:
There seems to be an issue that might be tangentially related to this, but I'm not sure if it actually is. Is there something I'm doing incorrectly?
The text was updated successfully, but these errors were encountered: