Hi @duttchasel, sorry to hear you’re having trouble here. This is unfortunately the expected behavior and it has confused me more than once as well
You’d need to return a JSON object in the headers field using an expression rather than write a JSON string. This earlier post of mine has an example of how such an expression could look like. You should be able to adjust this to your needs.