thoughtbot/Argo

Make decoding lazy

Ouverte

#185 ouverte le 31 juil. 2015

 (1 commentaire) (0 réaction) (0 personne assignée)Swift (214 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (3 455 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur