Storing JSON via Erlang Client

Konstantin Kalin konstantin.kalin at gmail.com
Thu Oct 17 12:20:42 EDT 2013


I used mochijson2 and ejson. I found that ejson works faster since it's
built using NIF. But both libraries use tuple wrapping around proplists.
Thus I developed a few wrapper functions to manipulate with fields.

Thank you,
Konstantin.


On Thu, Oct 17, 2013 at 9:08 AM, Eric Redmond <eredmond at basho.com> wrote:

> For building json you should also check out a tool like mochijson2.
> On Oct 17, 2013 6:51 AM, "Daniil Churikov" <ddosia at gmail.com> wrote:
>
>> {ok, Worker} = riakc_pb_socket:start_link("my_riak_node_1", 8087),
>> Obj = riakc_obj:new(<<"my_bucket">>, <<"my_key">>,
>> <<"{\"key\":\"\val\"}">>,
>> <<"application/json">>),
>> ok = riakc_pb_socket:put(Worker, Obj),
>> ok = riakc_pb_socket:stop(Worker).
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://riak-users.197444.n3.nabble.com/Storing-JSON-via-Erlang-Client-tp4029489p4029491.html
>> Sent from the Riak Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> riak-users mailing list
>> riak-users at lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20131017/b78ffd05/attachment.html>


More information about the riak-users mailing list