Skip to content

Instantly share code, notes, and snippets.

@shijinkui
Created June 25, 2015 03:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shijinkui/d0341cc475a435b5a2e2 to your computer and use it in GitHub Desktop.
Save shijinkui/d0341cc475a435b5a2e2 to your computer and use it in GitHub Desktop.
scala_json
object Test {
def main(args: Array[String]): Unit = {
val j = new JSONObject(Map[String, Int]("11" -> 111, "ff" -> 234234))
println(j.toString())
val a = JSON.parseFull(j.toString())
a match {
case Some(x: Map[String, Any]) => println(x.getClass + "," + x)
case None =>
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment