You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2007/02/01 03:42:48 UTC

[Solr Wiki] Update of "SolJSON" by YonikSeeley

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by YonikSeeley:
http://wiki.apache.org/solr/SolJSON

The comment on the change is:
json.nl=flat

------------------------------------------------------------------------------
  }}}
  
  == JSON specific parameters ==
-  * wt=json - enable JSON output
+  * wt=json - choose JSON output for the response
+  * json.nl - This parameter controls the output format of !NamedLists, where order is more important than access by name.
+   * json.nl=flat - the default.  !NamedList is represented as a flat array, alternating names and values: {{{[name1,val1, name2,val2]}}} 
-  * json.nl=map - the default... !NamedList is represented as a JSON object.  Although this is the simplest mapping, a !NamedList can have optional keys, repeated keys, and preserves order.  Using a JSON object (essentially a map or hash) for a !NamedList results in the loss of some information.
+   * json.nl=map - !NamedList is represented as a JSON object.  Although this is the simplest mapping, a !NamedList can have optional keys, repeated keys, and preserves order.  Using a JSON object (essentially a map or hash) for a !NamedList results in the loss of some information.
-  * json.nl=arrarr - represent a !NamedList as an array of two element arrays {{{[[name1,val1], [name2, val2], [name3,val3]]}}}
+   * json.nl=arrarr - represent a !NamedList as an array of two element arrays {{{[[name1,val1], [name2, val2], [name3,val3]]}}}
   * json.wrf=function - adds a wrapper-function around the JSON response, useful in AJAX with dynamic script tags for specifying a !JavaScript callback function.
     * http://www.xml.com/pub/a/2005/12/21/json-dynamic-script-tag.html
     * http://www.theurer.cc/blog/2005/12/15/web-services-json-dump-your-proxy/