JsonPath query for nested json in an array

 {

  "feature": {

    "properties": {

      "responses": [

        {

          "detail": "VALID"

        }

      ],

      "status": "COMPLETED"

    }

  }

}


Can use the below online tool to test the json path

https://jsonpath.herokuapp.com/


Json Path to filter such json


$.feature.properties[?(@.status=='COMPLETED' && @.responses[0].['detail']=='VALID')]






Comments

Popular Posts