Oh, don't give me any credit, it's all my compatriot Norm here who's come up with this. I'm just hacking up his code...
He's away this week so I'm bothering you guys :) I'll pursue the pattern matching you mentioned. Mike -----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
