map.toMap() for a read-only copy or map.toMutableMap() for an editable one. Both are shallow, so values that are themselves mutable are still shared.@Serializable and call Json.encodeToString(value). Gson and Moshi are alternatives that work through reflection.Try Bugsee for free — no commitments, no hidden fees.