thoughtbot/Argo

Make decoding lazy

Open

#185 aperta il 31 lug 2015

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Swift (214 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (3455 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor