toJSON

abstract fun toJSON(): JSONObject

Convert the stack frame to a JSON representation.