2009/6/18 francisco treacy <[email protected]>:
> 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:
$.ajax({
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.