Find a key/value in a json object

I am wondering if there is a universal way to find an element within an object without knowing the path.

E.g. get the 'id' value, without knowing the top level of the object (one/two/three).

{
'one': {
'from': {
'id': 123
}
}}

{
'two': {
'from': {
'id': 123
}
}}

{
'three': {
'from': {
'id': 123
}
}}

What is known and stable is the level where 'id' resides



6 replies