toJson

@NotNull
open fun toJson(): @NotNull JsonElement

Converts this version to a JSON element.

Return

the JSON representation (primitive int or array)

Since

1.15.2