Skip to content

Instantly share code, notes, and snippets.

Created December 30, 2011 15:02
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
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.")
Copy link

dmigo commented Apr 30, 2020

It seems to be deprecated. Do you know if there is a new example somewhere?

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