Jsonpath :-Should contains root object as well -


i have 1 requirment want result should contain root object well. example data below:-

      {           "data": [              {                "name": "barack obama",                 "category": "politician",                 "id": "6815841748"              },               {                "name": "barack obama's dead fly",                 "category": "public figure",                 "id": "92943557739"              }]          } 

and condition name=="barack obama" result should below :-

 { "data": [ {                        "name": "barack obama",                         "category": "politician",                         "id": "6815841748"            }]  }  

can please suggest experssion ?


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -