saveBARTModelToJsonFile function

Convert the persistent aspects of a BART model to (in-memory) JSON and save to a file