score:1

Accepted answer

when you use validate you get a list of errors.

json.validate[myclass] match {
  case jssuccess(myclass, _) =>
    // do something
  case jserror(errors) =>
    // do something with the errors
}

the errors are of type seq[(jspath, seq[jsonvalidationerror])]. you can transform this to whatever you want.


Related Query

More Query from same tag