serialize

fun SpigotSerializable<*>.serialize(pretty: Boolean = true): String

Return

A json string.