Below is an example JSON response body for a single feature. What I want to do is extract all of the "points" elements (in bold) as a list.
- Which transformer should I use?
- How would I write the syntax to extract the detail in bold through a JSON query?
- Can it be parsed as an attribute? If so, how?
{
"id" : "feature1",
"name" : "Feature 1",
"length" : "5,000 km",
"points" : [
{
"id" : "loc1",
"name" : "Location 1",
"country" : "CountryA",
"is_tbd" : null
},
{
"id" : "loc2",
"name" : "Location 2",
"country" : "CountryB",
"is_tbd" : null
}
],
"notes1" : "test",
"notes2" : null
}