thoughtbot/Argo

Make decoding lazy

Open

#185 建立於 2015年7月31日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Swift (3,455 star) (214 fork)batch import
enhancementhelp wanted

描述

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.

貢獻者指南