building json using scala.util.parsing.json