Using Scripts to capture a certificateChain

Hello Experts;

When posting a test connection API call in Postman I get a JSON dictionary response where one of the keys is the certificate chain if I try to use the script tab to capture the value of the key I find it removes the escaping from the value that it was displaying in the JSON body

the script i m using is

pm.environment.set(“my_env_key”, pm.response.jason().targetProbe.certificateChani);

if i select the certificateChain key value , right click and select set as variable and select my_env_key it keeps the escaping …
any help is appricaited

Hey @navigation-archite12 :wave:t3:

What is the response structure? What’s does the stored environment variable look like?

We might need some visual clues to see what’s happening here.