Example JSON file:
{
"propertyName1": {
"name": "Anthony",
"age": 10
},
"propertyName2": {
"name": "Eric",
"age": 12
}
}
I need to find the name which age is 10 for example
("properyName1.find{it.age == '10'}.name"). is not working, the propertyName1 is not an array
I need this because in this example I know the age, and with age, I want to find the name. How can I find the needed data?