Want to access an element from the tuple inside bitsrting inside list

Gopi Krishna gopi at lintelindia.com
Mon May 19 04:04:27 EDT 2014

Hi All,

I am having the data like:

R =
[<<"{\"age\": 24, \"name\": \"krishna\"}">>,
 <<"{\"age\": 29, \"name\": \"sharat\"}">>,
 <<"{\"age\": 25, \"name\": \"ramesh\"}">>,
 <<"{\"age\": 28, \"name\": \"kumar\"}">>,
 <<"{\"age\": 24, \"name\": \"gopi\"}">>,
 <<"{\"age\": 27, \"name\": \"anil\"}">>].

How can i get the age,name value for a particular age/name.

I have tried the following but i am not sure how to get it.

28> list_to_tuple(R).
{<<"{\"age\": 24, \"name\": \"krishna\"}">>,
 <<"{\"age\": 29, \"name\": \"sharat\"}">>,
 <<"{\"age\": 25, \"name\": \"ramesh\"}">>,
 <<"{\"age\": 28, \"name\": \"kumar\"}">>,
 <<"{\"age\": 24, \"name\": \"gopi\"}">>,
 <<"{\"age\": 27, \"name\": \"anil\"}">>}

<<"{\"age\": 24, \"name\": \"krishna\"}">>


Please suggest me how to get the age/name.


Thanks & Regards,
J.Gopi Krishna
Lintel Technologies Pvt. LTD,Hyderabad.

This message contains confidential information and is intended for
recipient. If you are not the intended recipient you are notified that
disclosing, copying, distributing or taking any action in reliance on the
contents of this information is strictly prohibited. E-mail transmission
cannot be guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please request a
hard-copy version.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20140519/7a306cd9/attachment.html>

More information about the riak-users mailing list