toScopesJsonArray

fun String.toScopesJsonArray(): <Error class: unknown class>

Converts a comma-separated scope string into a kotlinx.serialization.json.JsonArray of strings.

Used when building a JSON config object where scopes must be a JSON array rather than a comma-separated string (e.g. before passing config to a factory function).

Example: "openid, profile"["openid", "profile"]