public void saveRuntimeInfoInJSONFormat(String fileName) throws DMLRuntimeException, IOException {
  String json=getRuntimeInfoInJSONFormat();
  BufferedWriter bw=new BufferedWriter(new FileWriter(fileName));
  bw.write(json);
  bw.close();
}

public void saveRuntimeInfoInJSONFormat ( String fileName ) throws DMLRuntimeException , IOException { String json = getRuntimeInfoInJSONFormat ( ) ; BufferedWriter bw = new BufferedWriter ( new FileWriter ( fileName ) ) ; bw . write ( json ) ; bw . close ( ) ; }
useful to avoid passing large string through py4j
