code: public static String renderJson(Object o) {
  
          Gson gson = new GsonBuilder().disableHtmlEscaping().setPrettyPrinting()
                  .create();
          return gson.toJson(o);
      }
docs: Render json.
  
  @param o
  the o
  @return the string