Skip to content
Snippets Groups Projects
Commit 6111da8c authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Added Some() support to anyToJson

parent 2e046f83
No related branches found
No related tags found
No related merge requests found
......@@ -160,6 +160,7 @@ object ConfigUtils extends Logging {
any match {
case j: Json => j
case None => Json.jNull
case Some(x) => anyToJson(x)
case m: Map[_, _] => mapToJson(m.map(m => m._1.toString -> anyToJson(m._2)))
case l: List[_] => Json.array(l.map(anyToJson(_)): _*)
case b: Boolean => Json.jBool(b)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment