I needed to extract the name of the objects contained in a JSON file, for example, to show that the JSON file below has the objects batteryCharge, luminousFlux, id, temperature. But do this search without specifying the name of the object to be searched for, as I have other JSON files with different objects.
{
"batteryCharge": {
"metadata": {
"code": {
"type": "Text",
"value": "%"
}
},
"type": "urn:x-ogc:def:phenomenon:IDAS:1.0:batteryCharge",
"value": "74"
},
"id": "urn:smartsantander:testbed:338",
"luminousFlux": {
"metadata": {
"code": {
"type": "Text",
"value": "lm"
}
},
"type": "urn:x-ogc:def:phenomenon:IDAS:1.0:luminousFlux",
"value": "0"
},
"temperature": {
"metadata": {
"code": {
"type": "Text",
"value": "Cel"
}
},
"type": "urn:x-ogc:def:phenomenon:IDAS:1.0:temperature",
"value": "90"
}
}
get this result:
batteryCharge, luminousFlux, id, temperature
Thanks in advance for your help.