parseOrPassthrough

fun parseOrPassthrough(value: String?, joinWith: String = ""): String

Parses value as a JSON string array and joins its non-blank items with joinWith; passes through as-is otherwise. An empty or all-blank array yields "" rather than leaking the raw JSON into the UI.