How to extract json value from Katalon Rest Web Services

0

How to extract json value from Katalon Rest Web Services

Answered question
0

you can extract json value from json and can save in a variable by using below code.
import below linke in top of katalon script page.

import groovy.json.JsonSlurper as JsonSlurper

Add below code in your test and get value by given json path value.

JsonSlurper slurper = new JsonSlurper()
Map parsedJson = slurper.parseText(responseText)
String ques = parsedJson.items[0].question

i hope it will help you.

Answered question