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 20:29:20 GMT
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.


-----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