{
"特效1": [{
"特效1_1": ["AttackArrow.json", "icon_effect1.json"]
},
{
"特效1_2": ["effec_thudun.json"]
}
}
The object data structure is similar to this. When I know the file name AttackArrow.json, I want to get the special effect 1/special effect 1_1 through this file name. How to get it
Equivalent to when I click on the file AttackArrow.json, I want to know which folder it is in
Modify your data structure and see if it is the result you want.
You can record the key set by adding an attribute to the target node when traversing the output