code: public static void convertToTypes( String serialization, String className, JsonObject newDef ) {
  
  		JsonParser jsonParser = new JsonParser();
  		JsonElement jsonTree = jsonParser.parse( serialization );
  
  		// Creating the swagger definition
  		JsonObject innerObject = new JsonObject();
  
  		// Start adding basic properties
  		innerObject.addProperty( "title", className );
  		innerObject.addProperty( "definition", "" );
  		innerObject.addProperty( "type", jsonTree.isJsonObject() ? "object" : jsonTree.isJsonArray() ? "array" : "string" );
  
  		// Prevent errors with classic Swagger UI
  		innerObject.addProperty( "properties", "" );
  
  		// Inner properties
  		innerObject.add( "example", jsonTree.getAsJsonObject());
  
  		// Update our global definition
  		newDef.add( "json_" + className, innerObject );
  	}
docs: Creates a JSon object from a serialization result.
  @param serialization the serialization result
  @param className a class or type name
  @param newDef the new definition object to update