Is it possible to replace the json property in the body response using kong response-transformation plugin?

Viewed 932

Is it possible to replace the JSON property in the body response using the kong response-transformation plugin? if yes, how to can I accomplish it using the UI Konga?

Example of a response body:
[
  {
    "id": 1,
    "name": "Leanne Graham",
    "username": "Bret",
    "email": "Sincere@april.biz",
    "address": {
      "street": "Kulas Light",
      "suite": "Apt. 556",
      "city": "Gwenborough",
      "zipcode": "92998-3874",
      "geo": {
        "lat": "-37.3159",
        "lng": "81.1496"
      }
]

what I want is to replace the id for user_id for each user in the response json.

1 Answers
Related