Is there an equivalent in Javascript for this following functionality achieved through Java?
To be able to iterate through an simple to complex/ nested JSON structure without knowing the JSON format.
I am in need of this functionality to get hold of all the innermost keys and that hold a direct value and not object/array as its value.
In this fiddle, Object.keys() only gives the outermost keys. I want to be able to get (id, type)
console.log(Object.keys(x));