savePreprocessorToJsonString function

Convert the persistent aspects of a covariate preprocessor to (in-memory) JSON string