code: private static Object toJson(JsonObject obj, JsonBuilderFactory factory) {
  		return obj.toJson(factory.createJsonBuilder());
  	}
docs: Converts a {@link JsonObject} to a JSON string
  @param obj the object to convert
  @param factory a factory used to create JSON builders
  @return the JSON string