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.

Thanks.

-----Original Message-----
From: Paul Davis [mailto:[email protected]] 
Sent: Monday, August 31, 2009 2:24 PM
To: [email protected]
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.

Paul

Reply via email to