Preprocess the json before injecting it.

A way to modify the content of the json on the fly before injecting.