Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

JSON string to be extracted from header

I have this unique requirement wherein I am getting a JSON string in http header. Although the JSON is valid but when I extract the JSON using:

context.getVariable('request.header.json.values')+"");

The string I received is invalid JSON. Can anyone suggest if this is a bug or I missed something. If this is a bug then can you suggest a workaround. @Dino can you please confirm.


0 3 952
3 REPLIES 3