I want to edit an outbound payload using set-body in this way:
{"link": "http://localhost:7071/api"} to {"link":""} <- some other link
I have tried this but there is no change in outbound:
JObject inBody = context.Response.Body.As<JObject>();
string str = inBody.ToString();
var item = JObject.Parse("{ 'link': 'http://localhost:7071/api}");
item["link"] = "https://randomlink/269";
return str;