couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Boermans <>
Subject Re: jquery and trailing \n
Date Thu, 18 Jun 2009 13:53:06 GMT
2009/6/18 francisco treacy <>:
> Any other pointers from
> people who have tried parsing CouchDB's json with jQuery?

To be sure I had my head around what was going on I’ve been using raw
jQuery ajax requests for data like:

	type: 'GET',
	url: '/cdb/calls/_design/recipients/_view/info',
	data: 'key="'+ recipientid +'"',
	dataType: 'json',
	success: function(data, textStatus){
		// used data.rows array here

Which worked fine once I got past my basic data type fumbles (array vs object).
I expect the jquery.couch.js as Martin points out is the way to go.
Yet to look at it closely myself.

View raw message