Following up my previous post on mapping json objects to Scala models, it is time to present some more advanced use cases. In the past weeks I have found myself in cases where a little more ‘magic’ was needed: Read dates from the json (org.joda.DateTime) Mapping primitive types (as Long) to a custom case class Nested objects Reading dates from Json objects Imagine you have a Json object, with a Unix timestamp field: {"field":"example field","date":1459014762000} How to map it? Define the ...