How to validate whether query parameter value in the GET req is a substring of the string present in the JSON response?

Hi…Firstly thank you for replying. Thank u for sharing the suggestions. Will follow them hereafter. I have rewritten my script above and it worked out. Though I have seen your reply only today. But as u said will try not complicating them hereafter. I just want to share a screnshot of what I have written


The above script however worked. Am not sure if there is any other way to write it.