In the Play Framework on Scala, setting up json serialization is as simple as adding
implicit val siteReads = Json.reads[Foo]
implicit val siteWrites = Json.writes[Foo]
to the Foo object in your model. Is there an equivalently easy way to do this for XML?
No, there is no equivalent API for Xml yet.
But the good news is that they are working on that. http://jto.github.io/articles/play_new_validation_api/ and http://mandubian.com/2014/01/31/play-rules-shapeless/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With