How can I read a value from a Javelin JSON nexted respone

book

Article ID: 197610

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

We are using Javelin to make REST API calls.
We are returning JSON formated responses that are nested.
How to we access these values to use in a flow.

Example Response:
 {
  "dataset": {
    "data": {
      "Status": "Already in AA status",
      "SIM": "8901260155790826877"
    }
  }
}

We want to be able to access the Values for Status and SIM.
How can we do that?

Environment

TDM 4.9X
Javelin 4.8

Resolution

You can access the individual values using the JObject from the response.
Rest call setup

examples of logging to access the Values:
Example to log the full JSON:

Example to Log Just the Status Value:

Example to lo just SIM value:

Attachments