public static void writeJsonObjectToFile(JSONObject jsonObject, String path) throws IOException, JSONException {
    writeStringToFile(jsonObject.toString(2), path);
  }
Pretty prints specified jsonObject to specified file path.

@param jsonObject to pretty print
@param path file path
@throws IOException
@throws JSONException
ambry-utils/src/main/java/com/github/ambry/utils/Utils.java