I'm so happy this kind of thing works: ```inline ...
# serialization
j
I'm so happy this kind of thing works:
Copy code
inline fun <T>safeJsonParse(input: String, l: KSerialLoader<T>): Either<RuntimeException, T> {
    try {
        return Either.Right(JSON.Companion.parse(l, input))
    } catch (e: Exception) {
        return Either.Left(RuntimeException("Something went wrong"))
    }
}