thoughtbot/Argo

Make decoding lazy

Open

#185 aberto em 31 de jul. de 2015

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)Swift (214 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (3.455 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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.

Guia do colaborador