couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: valid json string for mochijson2
Date Mon, 31 Aug 2009 20:00:15 GMT
> So I've got a simple function that just returns a json doc.
> {
>   "getData": "function(doc){ return {\"fld\":\"data\"};}"
> }
>
> It is called from an erlang module which gets back a FormResp and then calls
>
> couch_httpd:send_json(Req, FormResp)

Can you paste this bit of Erlang that you're using? If you're using
the map docs interface, then it should be returned as a proper ErlJSON
object but its hard to guess.

Paul

Mime
View raw message