I need to loop through a JSON file that looks like this:
JSON
"blocks":{
"vJb19r)WPw88AL7K#^ZI":{
"opcode":"control_incr_counter",
"next":"IV.E7vBXTcdK0jZYX}(o",
"parent":"lFI}(?:VU3KYI0bg*{_@",
"inputs":{},
"fields":{},
},
"IV.E7vBXTcdK0jZYX}(o":{
"opcode":"control_get_counter",
"next":"FT-ZWL](%!N-(;E6S{1-",
"parent":"vJb19r)WPw88AL7K#^ZI",
"inputs":{},
"fields":{},
},
"lFI}(?:VU3KYI0bg*{_@":{
"opcode":"control_wait",
"next":"vJb19r)WPw88AL7K#^ZI",
"parent":null,
"inputs":{},
"fields":{},
},
"FT-ZWL](%!N-(;E6S{1-":{
"opcode":"control_all_at_once",
"next":null,
"parent":"IV.E7vBXTcdK0jZYX}(o",
"inputs":{},
"fields":{},
}
Simpler & Shorter JSON
"blocks":{
"vJb19r)WPw88AL7K#^ZI":{},
"IV.E7vBXTcdK0jZYX}(o":{},
"lFI}(?:VU3KYI0bg*{_@":{},
"FT-ZWL](%!N-(;E6S{1-":{}
I can loop through a JSON array, but I can’t find a way to loop through this.
Please send help!