thoughtbot/Argo

Make decoding lazy

Open

#185 geöffnet am 31. Juli 2015

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Swift (214 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (3.455 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.

Contributor Guide