Create a gist now

Instantly share code, notes, and snippets.

Example of scala.util.parsing.json
import scala.util.parsing.json._
val result = JSON.parseFull("""
{"name": "Naoki", "lang": ["Java", "Scala"]}
result match {
case Some(e) => println(e) // => Map(name -> Naoki, lang -> List(Java, Scala))
case None => println("Failed.")

Thanks TakeZoe .





Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment