There is a JSON like this:
{
"P1": "ss",
"Id": 1234,
"P2": {
"P1": "cccc"
},
"P3": [
{
"P1": "aaa"
}
]
}
How can I find all P1
's value without it iterating all JSON?
P.S.: P1
can be anywhere in the JSON.
If no method can do this, can you tell me how to iterate through the JSON?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…