Hi Kresten,

On Fri, Apr 29, 2011 at 12:18:11AM +0200, Kresten Krab Thorup wrote:
> At any rate, you'll already have a JSON decoder (mochijson2) when running 
> inside Riak; so you can do
> 
>       JSON = mochijson2:decode(Value)
> 
> To decode your JSON.  For the JSON document {"key":4, "val":{"x"="y"}} , that 
> function should return 
> 
>  {struct, [{<<"key">>, 4}, 
>            {<<"val">>, {struct, 
>                          [{<<"x">>, <<"y">>}]}]}
> 
> 
> ... and you should be good to go.
Thanks for the example and reminding me that values are, in fact, of
arbitrary content :)

Now I can proceed further in my learning :)

--
Misha

Attachment: signature.asc
Description: Digital signature

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to