In the output you have mentioned:
{
"id": "mycc\u0000a",
"key": "mycc\u0000a",
"value": {
"rev": "3-7ad1349ec711a99a2a2f1dd1c8b08a20"
}
},
The key is prefixed with the name of your chaincode i.e., key “a” for chaincode “mycc”. To get the value, all you have to do is run a curl command:
curl -X GET "http://localhost:5984/mychannel/mycc%00a?attachments=true"
you’ll get the output like this:
--bdb0a91d2e233fdc193f2359e6a50472
Content-Type: application/json
{"_id":"mycc\u0000a","_rev":"2-2af72e502c2b43c73064728852103fbf","chaincodeid":"mycc","version":"4:0","_attachments":{"valueBytes":{"content_type":"application/octet-stream","revpos":2,"digest":"md5-qpvq4/JGMCgu7WtvFu5zbg==","length":2,"follows":true,"encoding":"gzip","encoded_length":22}}}
--bdb0a91d2e233fdc193f2359e6a50472
Content-Disposition: attachment; filename="valueBytes"
Content-Type: application/octet-stream
Content-Length: 22
Content-Encoding: gzip
4鯄i
--bdb0a91d2e233fdc193f2359e6a50472--%