I'm looking to be set straight on my understanding of how the Play Framework handles conversion of Scala objects to JSON and vice versa (specifically for RESTful APIs):
I've read over and over again across the web that using Play's JSON support is nothing but a pleasure. But coming from Spring where I have a built in HttpMessageConverter (specifically MappingJacksonHttpMessageConverter) which will auto marshall requests and responses in my controllers with hardly any effort.
Play, on the other hand, (it appears) requires you to write Read and Write converters for every class you intend to marshal. E.g. (from the Play Docs):
implicit val locationWrites: Writes[Location] = (
(JsPath \ "lat").write[Double] and
(JsPath \ "long").write[Double]
)(unlift(Location.unapply))
To me this seems tedious when compared to the built in automatic message converting capabilities of Spring. It is my understanding that Play also uses Jackson under the hood so can the same be accomplished with Scala / Play, or perhaps is my premise flawed?