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 18:52:04 GMT
Michael,

Are you working in Erlang with something? If so, could you paste a
short snippet of what you're trying to accomplish?

Paul Davis

On Mon, Aug 31, 2009 at 2:01 PM, Michael McCaffrey<mmccaffrey@ittvis.com> wrote:
> Hello,
>
>
>
> I'm trying to get a couchdb function to return a simple json doc and I
> can't get it to validate thru mochijson2.encoder.
>
>
>
> Just trying to return {"fld","data"} and get the
> {"error":"json_encode","reason":"{bad_term,{<<\"fld\">>,<<\"data\">>}}"}
> error
>
>
>
> Running the encoder I see it expects {[{"fld","data"}]}  format which I
> cannot get the couchdb function to produce.
>
>
>
> Any help on how to format this list of json docs in a couchdb function?
>
>
>
> Thanks
>
>
>
>
>
>
>
>
>
>

Mime
View raw message