Here’s another Swift based library for working with JSON data called ObjectMapper from Hearst-DD allowing you to easily map objects to and from JSON.

ObjectMapper allows you to easily map data to Swift objects by implementing their protocol with support for url and date transformations, custom transformations, and nested objects in your JSON.

This example from the readme shows an example mapping with the date transformed using the DateTransform function:

Once the class is set up you can then map your JSON to/from the object using a single line of code.

You can find ObjectMapper on Github here.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">