I'm trying to run through JSON, but some of the keys are random numbers and have otherwise unique names. I understand that you can select keys and their values if the key is predictable, but I'm unsure how to work with keys that aren't predictable.
Here is an example of some JSON:
{
"10193939": {
"3948493": {
"predictable_key1": "value1",
"predictable_key2": "value2",
"predictable_key3": [{
"inner_predictable_key1": "value1"
}]
},
"9898483": {
"predictable_key1": "value1",
"predictable_key2": "value2",
"predictable_key3": [{
"inner_predictable_key1": "value1"
}]
}
}
Now, I had some ideas, such as using a for each loops and remapping the inner unique keys to a new variable to bypass the outmost key. Is there an easy way to do this?