toJson

open fun toJson(): JsonElement

Encodes the value as Json.

Return

a JsonElement.