I want to convert variable message which is of type scala.Seq[Scala.Document] to JSON format in following code:
path(&q