couchdb - extracting a json from a document -
i using couchdb employee management app. have created document in couchdb following employees json :
{"employees" : [{"id":"123","name":"henry","address":"hsr"},{"id":"456","name":"erik","address":"kormangala"}]}
and when type on terminal :
curl -x http://127.0.0.1:5984/myapp/9351c38f9a64fd26e40b2ac4cf012efe
where 9351c38f9a64fd26e40b2ac4cf012efe document id. :
{"_id":"9351c38f9a64fd26e40b2ac4cf012efe","_rev":"7-77b5766b830a3c07c522e9ab17afae09","employees":[{"id":"123","name":"henry","address":"hsr"},{"id":"456","name":"erik","address":"kormangala"}]}
what interested :
[{"id":"123","name":"henry","address":"hsr"},{"id":"456","name":"erik","address":"kormangala"}]
how do it? in advance solutions and/or advices.
Comments
Post a Comment