I have an implicit format for converting a Map of [String, Any]..... anybody else interested in this, or want to offer feedback?
implicit object AnyJsonFormat extends JsonFormat[Any] {
def write(x: Any) = x match {
case n: Int => JsNumber(n)
case s: String => JsString(s)
case x: Seq[_] => seqFormat[Any].write(x)
case m: Map[String, _] => mapFormat[String, Any].write(m)
case b: Boolean if b == true => JsTrue
case b: Boolean if b == false => JsFalse
case x => serializationError("Do not understand object of type " + x.getClass.getName)
}
def read(value: JsValue) = value match {
case JsNumber(n) => n.intValue()
case JsString(s) => s
case a: JsArray => listFormat[Any].read(value)
case o: JsObject => mapFormat[String, Any].read(value)
case JsTrue => true
case JsFalse => false
case x => deserializationError("Do not understand how to deserialize " + x)
}
}