create JSON output after every step of the preprocessor