Created
June 25, 2015 03:18
-
-
Save shijinkui/d0341cc475a435b5a2e2 to your computer and use it in GitHub Desktop.
scala_json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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