couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <>
Subject Re: valid json string for mochijson2
Date Mon, 31 Aug 2009 20:23:56 GMT
> {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