我是mongodb的新手,根据要求我需要从中获取所有密钥 使用一些动态函数在MongoDB文档或任何其他文档下面。
MongoDB示例文档:
{
"encryption": {
"alg":"AES",
"encryption_key":"lkjhsdflkhsdfwe22348423"
},
"domain": "PBTV",
"detokenObject": [{
"client": {
"FORENAMES":"^^^ABCDEFG",
"SURNAME":"^^^ABCDFHE",
"COUNTRY":"England",
"transactions": [
{
"TYPE":"buy",
},
{
"TYPE":"sell",
"AMT":"1000"
},{
"AMT":"1000000000000000001"
}
]
} ,
"client1": {
"SURNAME":"^^^ABCDFHE",
"COUNTRY":"England",
"transactions": [
{
"TYPE":"buy",
"ASSET":"NYSE:APPL",
"AMT":"100"
},
{
"TYPE":"sell",
"ASSET":"NYSE:APPL",
"AMT":"1000"
}
]
}
}]
}
请提供任何解决方案?