Commit c4b74ae4 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Added a null value on None

parent 5f5ec879
......@@ -166,6 +166,7 @@ object ConfigUtils extends Logging {
def anyToJson(any: Any): Json = {
any match {
case j: Json => j
case None => Json.jNull
case m: Map[_, _] => mapToJson(m.map(m => m._1.toString -> anyToJson(m._2)))
case l: List[_] => Json.array(l.map(anyToJson(_)): _*)
case n: Int => Json.jNumberOrString(n)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment