encodeToJson

abstract fun encodeToJson(): JSONObject

Encode current object to JSONObject.

Return

The encoded JSONObject.