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
Now we have parse the whole JSON value into the JSON type, but then you have a lot of overhead when you have a lot of properties that you don't use. I tried this with a type DecodableValue that has a helper method to cast the data of the DecodableValue to the type that you want. DecodableValue replaces JSON and also saves a lot of looping and switches.
The text was updated successfully, but these errors were encountered:
This is something we're definitely looking to do, especially since we're starting to use Argo with more complex JSON structures, like those adhering to JSON:API.
Now we have parse the whole JSON value into the
JSON
type, but then you have a lot of overhead when you have a lot of properties that you don't use. I tried this with a typeDecodableValue
that has a helper method to cast the data of theDecodableValue
to the type that you want.DecodableValue
replaces JSON and also saves a lot of looping andswitch
es.The text was updated successfully, but these errors were encountered: