Converting ViewResults rows to json data

40 views
Skip to first unread message

dev.n...@gmail.com

unread,
Nov 25, 2015, 2:59:03 PM11/25/15
to CouchDB-Python
Hi,
I want to get my ViewResults result to json without having to parse returned rows.
Do I have to convert it manually? This could implies bad performance.
Is there a best way to get ViewResults result directly in json without querying directly the database?
Thanks

Dirkjan Ochtman

unread,
Nov 30, 2015, 4:15:07 AM11/30/15
to couchdb...@googlegroups.com
On Wed, Nov 25, 2015 at 7:29 PM, <dev.n...@gmail.com> wrote:
> Is there a best way to get ViewResults result directly in json without
> querying directly the database?

There isn't really. The http.Resource class, which is used for all
HTTP request at the client module layer, parses all JSON response
content before returning it to the client layer.

Cheers,

Dirkjan
Reply all
Reply to author
Forward
0 new messages