parse

fun parse(value: String?): String?

Parses a plain string (returned as-is) or a JSON-encoded {locale: value} map. A decoded locale map with no usable entry yields null (as the JsonElement overload does) rather than leaking the raw JSON into the UI. Non-string entries are handled exactly as the JsonElement overload handles them.


fun parse(element: JsonElement): String?