On Wed, Jul 20, 2011 at 10:58 AM, Sowmya V.B. <vbsow...@gmail.com> wrote: > Which is the best way to read Solr's JSON output, from a Java code?
You could use SolrJ - it handles parsing for you (and uses the most efficient binary format by default). > There seems to be a JSONParser in one of the jar files in SolrLib > (org.apache.noggit..)...but I dont understand how to read the parsed output > in this. If you just want to deserialize into objects (Maps, Lists, etc) then it's easy: ObjectBuilder.fromJSON(my_json_string) -Yonik http://www.lucidimagination.com