We need to do something else here. This option is being totally ignored.  I think we could do some simple json conversion just for this case:

```scala
def toJsonValue(a: Any): String =
  Try(a.toString.toInt)
    .recoverWith { case t: Throwable => Try(a.toString.toDouble) }
    .recover { case t: Throwable => a.toString }
    .get

JobStats(flow).toMap.map { case (k, v) => "\"%s\" : %s".format(k, toJsonValue(v)) }.mkString("{",",","}")
```