Hello @jayaveljays,similar thread is discussed here.
You should try
if (pm.response.code == 200 ) {
pm.test("search contract is successful", function () {
var jsonData = pm.response.json();
pm.globals.set("response2", JSON.stringify(jsonData));
console.log(pm.globals.get("response2"));
});
}
P.S - Kindly drop in the detailed error messages/screenshots when you post for next time. Because just in an assumption I have provided the response here, to avoid it in future kindly go through this before raising a query
Please let me know if you have still issue with this