spray-json
spray-json copied to clipboard
Exception while trying to use jsonFormatxxx with a case class
Using Spray-Json 1.3.2 (note : I also had a similar problem with 1.3.1)
While trying to output a case class as an object, I encounter an exception
The test code
import spray.json._
import DefaultJsonProtocol._
case class test(b:Boolean)
val t=test(false)
jsonFormat1(test)(t)
The exception I have is
error: not enough arguments for method jsonFormat1: (implicit evidence$1: spray.json.DefaultJsonProtocol.JF[Boolean], implicit evidence$2: ClassManifest[test])spray.json.RootJsonFormat[test]. Unspecified value parameter evidence$2. jsonFormat1(test)(t)