Insert and get data from this JSON

Venki Yedidha venkatesh.yedidha at gmail.com
Mon Jun 25 02:51:20 EDT 2012


Hi all,
                This is the json format I want to save in my Riak database:



2012-June-25  --->  India --->   [{"Hyderabad"
:[{"M":[{"13-17"}:{"data":{"name":"venkatesh","age":24}},

{"18-24"}:{"data":{"name":"srihari","age":26}},

{"25-34"}:{"data":{"name":"Madhu","age":26}},

{"35-44"}:{"data":{"name":"Sam","age":26}},

{"45-54"}:{"data":{"name":"Surya","age":26}},

{"55-64"}:{"data":{"name":"shree","age":26}},

{"65+"}:{"data":{"name":"Ido","age":26}}],

[{"F":[{"13-17"}:{"data":{"name":"swetha","age":24}},

{"18-24"}:{"data":{"name":"siri","age":26}},

{"25-34"}:{"data":{"name":"Madhu","age":26}},

{"35-44"}:{"data":{"name":"rani","age":26}},

{"45-54"}:{"data":{"name":"swapna","age":26}},

{"55-64"}:{"data":{"name":"swathi","age":26}},

{"65+"}:{"data":{"name":"jyothi","age":26}}],

[{"All":[{"13-17"}:{"data":{"name":"venkatesh","age":24}},

   {"18-24"}:{"data":{"name":"siri","age":26}},

   {"25-34"}:{"data":{"name":"Madhu","age":26}},

   {"35-44"}:{"data":{"name":"Sam","age":26}},

  {"45-54"}:{"data":{"name":"Srihari","age":26}},

     {"55-64"}:{"data":{"name":"shree","age":26}},

     {"65+"}:{"data":{"name":"Ido","age":26}}]},

                                          [{"Pune"
:[{"M":[{"13-17"}:{"data":{"name":"venkatesh","age":24}},

  {"18-24"}:{"data":{"name":"srihari","age":26}},

{"25-34"}:{"data":{"name":"Madhu","age":26}},

{"35-44"}:{"data":{"name":"Sam","age":26}},

{"45-54"}:{"data":{"name":"Surya","age":26}},

{"55-64"}:{"data":{"name":"shree","age":26}},

{"65+"}:{"data":{"name":"Ido","age":26}}],

[{"F":[{"13-17"}:{"data":{"name":"swetha","age":24}},

{"18-24"}:{"data":{"name":"siri","age":26}},

{"25-34"}:{"data":{"name":"Madhu","age":26}},

{"35-44"}:{"data":{"name":"rani","age":26}},

{"45-54"}:{"data":{"name":"swapna","age":26}},

{"55-64"}:{"data":{"name":"swathi","age":26}},

{"65+"}:{"data":{"name":"jyothi","age":26}}],

[{"All":[{"13-17"}:{"data":{"name":"venkatesh","age":24}},

   {"18-24"}:{"data":{"name":"siri","age":26}},

   {"25-34"}:{"data":{"name":"Madhu","age":26}},

   {"35-44"}:{"data":{"name":"Sam","age":26}},

  {"45-54"}:{"data":{"name":"Srihari","age":26}}]


2012-June-25  is the bucket name and India is the key name.
Each and every time I will receive the
{"data":{"name":"venkatesh","age":24} part and I need to insert them in the
appropriate area.

I need help for:
1. Insert the given data under Hyderabad for female age group in age gap
b/n 13-17 for India?
2.Retrieve the above result?

I just need the curl request although I have riak-php client library
available.

Thanks,
Venkatesh.Y
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20120625/3526b796/attachment.html>


More information about the riak-users mailing list