I have the following JSON:
{
"Files": {
"Lines": {
"198": {
"firstline": "sometext"
}
}
}
}
and the value "198" is dynamic and changes. How can I access the "firstline" property easily without knowing "198" in the following code:
var schema = JSON.parse(fileContents);
console.log(schema.Files.Lines.????.firstline);