I have a specific requirement wherein I need to pass on a json message as the request body. This json message has a whole bunch of key:value pairs, of which most values would remain the same for all the requests. We want the end user to have the ability to customize specific fields, which would change the value of those specific fields in the json message.
I am thinking of creating a context variable with the default json message as the value, and to have a whole bunch of request headers (for the user customization part), and to read those header values once the user submits the request.
Is there an easier way to replace the value of specific fields within the json message with the values from the request headers.