couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: JSON encoding errors
Date Sat, 25 Jul 2009 15:26:21 GMT
2009/7/25 Lynton Grice <lynton.grice@logosworld.com>:

> It seems the problem lies entirely with the "mochijson2.erl" file. The file
> I am using from the CouchDB download seems to let CouchDB run fine BUT when
> I try use the "mochijson2" file from standard Erlang I get errors pretty
> much all the time.
>
> Any idea how I can solve these JSON errors?
>
I'm using mochijson2 for a library I expect to  release this we, and I
have no problem with it. It seem that you miss the struc term in your
doc :

[{<<"name">>,
<<"Korale">>}, {<<"type">>, <<"character">>}]

should be

{struct, [{<<"name">>,
<<"Korale">>}, {<<"type">>, <<"character">>}]}

- benoƮt

Mime
View raw message