Created
May 21, 2011 07:31
-
-
Save seratch/984337 to your computer and use it in GitHub Desktop.
memo@2.9.0.final
This file contains 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
scala> val json = """{ "person" : { "name": "A" }, "person": { "name" : "B" } }""" | |
json: java.lang.String = { "person" : { "name": "A" }, "person": { "name" : "B" } } | |
scala> util.parsing.json.JSON.parseFull(json) | |
res4: Option[Any] = Some(Map(person -> Map(name -> B))) | |
scala> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
実際には
http://wiki.apache.org/solr/UpdateJSON
これのパースがやりたいんだけど、ふと我に返るとこのフォーマットの方に問題があるような。どうするのが一番いいのか。