<div>I though i should be able to run this.</div><div><br></div>mochijson2:decode( "{ "colour" : "red", "value" : "#f00" }" ). <div><br></div><div>but get 2: syntax error before: colour</div>
<div><br></div><div>Like you said i think its the syntax, but i cant see it.</div><div><br></div><div>Cheers Richard<br><br><div class="gmail_quote">On Tue, Jun 7, 2011 at 1:51 PM, Bob Ippolito <span dir="ltr"><<a href="mailto:bob@redivi.com">bob@redivi.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">It sounds like your input isn't JSON, or maybe you've misunderstood<br>
something about Erlang syntax. If you post some code it may help<br>
pinpoint exactly what's going on.<br>
<div><div></div><div class="h5"><br>
On Tue, Jun 7, 2011 at 5:22 AM, richard claxton <<a href="mailto:rich.claxton@gmail.com">rich.claxton@gmail.com</a>> wrote:<br>
> I am new to erlang and i am playing around with mochijson2, JSON parsing<br>
> from a http post, I can decode the json http request if i escape all the<br>
> quotes in the string \" but there must be a better solution then this?<br>
> Cheer Richard<br>
</div></div>> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
><br>
><br>
</blockquote></div><br></div>