How to get json array value in html response body

Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic.

Here’s an outline with best practices for making your inquiry.

My question: I get a response in html format, but there is a json format array in it. Is there a way to access this array and get the values?

Details (like screenshots):

How I found the problem:

I’ve already tried:

Does the following find anything?

const response = cheerio.load(pm.response.text());
var  cfg = response("N.cfg").text();
console.log(cfg);

If it doesn’t. Could you console.log the parsed HTML and paste here (using the preformatted text option), so we have a full example to work with. Anonymise anything that needs redacting.

image

If you run the script above, you will get a value that does not exist.

Thought it might. Therefore, can you include a copy of the parsed HTML, so we can try out the query options. Console.log the variable you have it stored in, then copy and paste using the preformatted text option.