Skip to content

Commit

Permalink
Improved nonStrictJson parser to be more lenient and allow nulls and …
Browse files Browse the repository at this point in the history
…trailing commas etc.
  • Loading branch information
idimov-keeper committed Oct 4, 2024
1 parent 7589af8 commit 211bfa0
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,13 @@ fun postFunction(
return KeeperHttpResponse(statusCode, data)
}

private val nonStrictJson = Json { ignoreUnknownKeys = true }
@ExperimentalSerializationApi
private val nonStrictJson = Json {
ignoreUnknownKeys = true
isLenient = true
coerceInputValues = true
allowTrailingComma = true
}

var keyId = 7

Expand Down

0 comments on commit 211bfa0

Please sign in to comment.