In our previousversions of parser, there is no support for optionals. If any key transformation fails or if any key is missing or if the response contains nil values for keys, the whole parsing fails. This is not desired in most of the situations.
In the last tutorial we’ve seen how to use functional concepts to parse JSON into Swift models. One of the main problems with that code is it doesn’t support value transformations, ie., changing the values coming from JSON before assigning them to the model. Let’s try to implement it.