Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is there an XML equivalent of Json.reads[Foo] and Json.writes[Foo] in the Play Framework

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?

like image 939
Mike Roberts Avatar asked Nov 11 '22 15:11

Mike Roberts


1 Answers

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/

like image 148
Renato Avatar answered Nov 13 '22 08:11

Renato