在shell脚本中解码JSON和base64编码的值
问题描述:
我有一个JSON,需要使用特定的密钥提取base64编码的值并将其解码。在shell脚本中解码JSON和base64编码的值
JSON具有以下结构:
[
{
"LockIndex": 0,
"Key": "Arul/key1",
"Flags": 0,
"Value": "MzAKCg==",
"CreateIndex": 369,
"ModifyIndex": 554
}
]
在上述JSON,我只需要"Value":"MzAKCg=="
提取和解码base64编码"MzAKCg=="
值。我想使用shell脚本执行此操作。
请协助。