Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

scala play json read single field

implicit val cReads: Reads[Conf] =
  (__  "dirConfSeq").read[ISeq[DirConf]].map(Conf)

implicit val cWrites: Writes[Conf] =
  (__  "dirConfSeq").write[ISeq[DirConf]].contramap(_.dirConfSeq)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #scala #play #json #read #single #field
ADD COMMENT
Topic
Name
9+9 =