cancel
Showing results for 
Search instead for 
Did you mean: 

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

Highlighted
Occasional Contributor

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.

2 REPLIES 2
Highlighted
Community Hero

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

Highlighted
Occasional Contributor

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

Hi Rao,

 

Thanks for your reply. When I followed the instructions in the link you have shared I am facing the below issue

 

DefaultReader.JPGCould you please help me in resolving this?

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors