Add a hook to preprocess the json mocks.