couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nils Breunese <>
Subject Re: JSONView to the rescue
Date Fri, 30 Oct 2009 12:53:40 GMT
Vlad GURDIGA wrote:

> I guess everyone starting with CouchDB would like to have a little
> nicer error messages.
> JSONView* Firefox add-on with a little patch can ease a this pain.
> By default it beautifies only responses with content-type
> application/json. But this is easy "fixable" if you register it for
> text/plain responses too. Yeah, I now it's not a nice and clean
> approach but it looks like working for now. :)
> Here is how:
> - find the jsonview.js in the add-on directory (if you are not able
> find it you probably don't want to mess with it, sorry);
> - adjust postRegister and preUnregister functions;
> - restart Firefox.

You can also just go the add-on's preferences and enable adding 
application/json to the accept header. :o)

Nils Breunese.

View raw message