您好,因为循环嵌套过多,目前我做得就是循环套循环直到底层,这样比较麻烦,想问下是否有简单得方法可以取到vibrate_seq里得seq1呢
{
"body":
{
"msg":"
{
\"data\":
{
\"id\":\"739\",
\"params\":
{
\"state\":
{
\"time\":1718173598281,
\"value\":
{
\"event\":2
}
}
\"cell\":
{
\"time\":1718173598281,
\"value\":
[
{
\"cellid\":91017933,
\"lac\":4202,
\"mcc\":460,
\"mnc\":8,
\"rsrp\":-113
}
]
},
\"wifi\":
{
\"time\":1718173598281,
\"value\":
[
{
\"mac\":\"DC:8C:37:FC:0D:A0\",
\"rssi\":-58
}
]
},
\"vibrate_seq\":
{
\"time\":1718173598281,
\"value\":
[
{
\"timestamp\":1718173598281,
\"seq1\":\"1111111111111000000010001000000000001001111111100011111000001110000011111110001001111111000011111110000000001110000011111000000000000000000000000000000000000000000000000000000000000000000000000000000011010101010000001111000001101110101210111010000111011101\"
\"seq2\":\"1111111111111000000010001000000000001001111111100011111000001110000011110111001100000100111111110001111100000111000000001111000001101110101210111010000111011101\"
}
]
}
},
\"version\":\"\"
},
\"deviceId\":\"2148467497\",
\"deviceName\":\"DC0A020007A9\",
\"messageType\":\"notify\",
\"notifyType\":\"property\",
\"productId\":\"CQyGsgIVba\"
}",
"signature":"9lsntYIi5YOk2V7l5pmV3Q==",
"time":1718173598314,
"id":"1646116004267482189",
"nonce":"VrVapoUH"
},
}
|