I'm trying to change HTTP response body with Charles Proxy using rewrite tool / regex? The response is a JSON.
So part of the returned response JSON body is:
"unavailablePosts": ["AA", "BB"],
and what I want is:
"unavailablePosts": "XXX",
I try to set up Charles' rewrite like this:
So the regex is like:
"unavailablePosts": \[(.*)\],
But ... (as I'm asking this question) it does not work, i.e. nothing is changed in response body.