toJson

open fun toJson(): ObjectNode

Serializes this field into a JSON ObjectNode.

If this field is set to its default value, the returned object will be empty.

Return

The serialized JSON object.