Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology

iRule ReWrite - Inserting JSON Parameter into Request + Removing Same JSON Parameter from Response

Looking to leverage an iRule to Dynamically insert a JSON Parameter into an HTTP payload and then scrub it in the response back to the client.

However, we want to inspect the Payload and only perform this action when a specific JSON Parameter value exsits.


When JSON Key/Value of "Animal": "Dog" exists, Dynamically insert new Parameter of "Color": "Brown".

The server(pool member) would see this new parameter and act on it, but in the HTTP response to the client, the new parameter is not in the payload.

Do iRules know how to handle and work with JSON specifically?

Is an LX iRule going to be need to do this advanced rewrite?


Rate this Question

Answers to this Question