- 帖子
- 1013
- 积分
- 1228
- 技术
- 14
- 捐助
- 0
- 注册时间
- 2019-2-20
|
[问题求助] 【已解决】利用powershell取json同组下的某一键的值
本帖最后由 5i365 于 2022-5-15 09:07 编辑
我只知道JSON文件中的 album_id 和 album_audio_id 两个值, 想利用这两个值, 来获取同一组下的hash键的值, 求路过高手帮忙, 提前感谢
$album_id=37376237
$album_audio_id=255787470
________________________________________________________________JSON文件内容
{
"data": {
"timestamp": 1651972245,
"total": 44,
"info": [
{
"hash": "A5D06A9BD3CC35FF866522F955C095C0",
"album_id": "37376237",
"album_audio_id": 255787470,
"trans_param": {
"sort": 42,
"cpy_grade": 5,
"classmap": {
"attr0": 100798472
},
"cid": 98259926,
},
"filename": "汪苏泷 - 不分手的恋爱",
},
{
"hash": "31DFACD6F8CD5A73EA087DD7197BA9D7",
"album_id": "37376237",
"album_audio_id": 174466641,
"trans_param": {
"sort": 43,
"cpy_grade": 5,
"classmap": {
"attr0": 100798472
},
"cid": 98259995,
},
"filename": "汪苏泷 - 你让我懂",
},
{
"hash": "48E55ADA95ECA6E5EA4EEC58E22D94DD",
"album_id": "37376237",
"album_audio_id": 174452241,
"trans_param": {
"sort": 44,
"cpy_grade": 5,
"classmap": {
"attr0": 100798472
},
"cid": 98259994,
},
"filename": "汪苏泷 - 小星星",
}
]
},
"errcode": 0,
"status": 1,
"error": ""
} |
|