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"
    }
  }
]
4
  • Searching google how to extract value from json rest assured might help you. We're not coding service, so pls add your attempted code. Commented Oct 16, 2022 at 12:48
  • I have tried below code JsonArray jsonarray = new JSONArray(JsonresponseString); Commented Oct 17, 2022 at 9:50
  • what do you mean by "generic way"? Commented Oct 17, 2022 at 13:44
  • Does this answer your question? How to access nested elements of json object using getJSONArray method Commented Oct 28, 2022 at 18:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.