0

I want to fetch value of Column, Tag & Status attribute from below json string in a generic way.

[
  {
    "HoldTag": {
      "Employee": {
        "Column": "0",
        "Tags": [
          {
            "Tag": "2345"
          }
        ],
        "Status": "3",
        
      },
      "Flag": "true"
    }
  }
]
lucas-nguyen-17
  • 5,516
  • 2
  • 9
  • 20
  • Searching google `how to extract value from json rest assured` might help you. We're not coding service, so pls add your attempted code. – lucas-nguyen-17 Oct 16 '22 at 12:48
  • I have tried below code JsonArray jsonarray = new JSONArray(JsonresponseString); – Poonam Vaidya Oct 17 '22 at 09:50
  • what do you mean by "generic way"? – Alexey R. Oct 17 '22 at 13:44
  • Does this answer your question? [How to access nested elements of json object using getJSONArray method](https://stackoverflow.com/questions/14898768/how-to-access-nested-elements-of-json-object-using-getjsonarray-method) – kaweesha Oct 28 '22 at 18:57

0 Answers0