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
{{ message }}
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.
I have a special case, I have a JSON response which sometimes returns a numeric value and sometimes a string value for the same key. Is there any way to handle such a JSON response.
I know, that this isn't a good idea in general, but I don't have access to the server backend 😉.
The text was updated successfully, but these errors were encountered:
Hey @patricks! Have you tried to implement custom decode logic via init(from decoder: Decoder) of Decodable. I think it's the most preferable way to handle your situation. 🤔
Hi,
I have a special case, I have a JSON response which sometimes returns a numeric value and sometimes a string value for the same key. Is there any way to handle such a JSON response.
I know, that this isn't a good idea in general, but I don't have access to the server backend 😉.
The text was updated successfully, but these errors were encountered: