from Safe Json
Attempts to use JsonAdapter.failOnUnknown and logs any issues before falling back to ignoring the unknown fields.
This overload is needed for JVM compatibility.
fun <T> JsonAdapter<T>.fromSafeJson(json: String, onUnknownFields: (JsonDataException) -> Unit): T?
Content copied to clipboard
Attempts to use JsonAdapter.failOnUnknown and logs any issues before falling back to ignoring the unknown fields.