Forum Discussion

SriniMarva27's avatar
SriniMarva27
Occasional Contributor
7 years ago

How do I read value from JSON node using its path without parsing?

{
"title": "Person",
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"age": {
"description": "Age in years",
"type": "integer",
"minimum": 0
}
},
"required": ["firstName", "lastName"]
}

 

Json path I have is - $.properties..description

 

Now how do I get the result from above JSON using this json path in groovy.