toJson

fun toJson(): JsonElement

Converts the DataItem to JSON according to Section 6.1 of RFC 8949.

Return

a JsonElement.