couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anh <>
Subject View results JSON format
Date Tue, 01 Dec 2009 06:25:55 GMT

Sorry if I've missed this in the docs, but was wondering if it's
possible to format the output of views so that they do not always have
this outer JSON "wrapper":

  "total_rows": 3,
  "offset": 0,
  "rows": [{
      "id": ...,

Basically, I'd like to format view results to look like simple JSON objects:

["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]

I'm doing back and forth mapping to Java objects, and the various libs
I'm using require extra overhead (and objects) to deal with the JSON
format I've seen in all the Couch examples.


View raw message