Preprocess the json before injecting it.

A way to modify the content of the json on the fly before injecting.
Please don't disable rules.