Hi,
I’m trying to access a specific value and the JSON object has a special character (@) and I’m lost about how to get a value within the object.
I’ve tried this:
// save the Etag into an collection variable
let response = pm.response.json().items[0];
let key = response.PreferredFlag.@context.key;
pm.collectionVariables.set(“eEtag”, key);
console.log(“eEtag”,pm.collectionVariables.get(“eEtag”));
But it errors.
New at this and already over my head.
Jeff