I'm trying to write a script to get a list of all the keys of an object from a file in linux terminal.
The file contains something like this:
{
"general" : {
"street" : "Av. Roadmin",
"name" : "Batman",
"phone" : "125478",
"pets": {
"dog":"Hurry",
"cat": "Aria"
}
}
}
And I want the next output:
general.street
general.name
general.phone
general.pets.dog
general.pets.car
Somebody can help me, please?
Thanks!