Skip to content

Instantly share code, notes, and snippets.

@seratch
Created May 21, 2011 07:31
Show Gist options
  • Save seratch/984337 to your computer and use it in GitHub Desktop.
Save seratch/984337 to your computer and use it in GitHub Desktop.
memo@2.9.0.final
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>
@seratch
Copy link
Author

seratch commented May 21, 2011

実際には
http://wiki.apache.org/solr/UpdateJSON
これのパースがやりたいんだけど、ふと我に返るとこのフォーマットの方に問題があるような。どうするのが一番いいのか。

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