couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCaffrey" <mmccaff...@ittvis.com>
Subject valid json string for mochijson2
Date Mon, 31 Aug 2009 18:01:52 GMT
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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message