toJSON

fun toJSON(): Map<String, Int>

Deprecated

Use toData() with kotlinx.serialization instead.

Replace with

toData()

Return a JSON-serializable object representing the range.