incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCaffrey" <>
Subject RE: valid json string for mochijson2
Date Mon, 31 Aug 2009 21:08:36 GMT
Thanks for your help, I got it working.

I can see now where it might be a problem since the FormResp was a tuple

Much to learn here.


-----Original Message-----
From: Paul Davis [] 
Sent: Monday, August 31, 2009 2:24 PM
Subject: Re: valid json string for mochijson2

> {FormResp} = csw_view_query_servers:render_view(Lang, UpFun, nil, nil,
Req, Db),
> couch_httpd:send_json(Req, FormResp);

You appear to be pattern matching the response into invalid ErlJSON
here. Try removing the curly braces around FormResp.

Nice use of _show mechanics for that. Didn't even cross my mind when
contemplating it.


View raw message