Added Fit.to_json.