convertPreprocessorToJson function

Convert Covariate Preprocessor to CppJson