foldNullAsNative

fun JsonNode?.foldNullAsNative(): JsonNode?

Converts this into the native null type if JsonNode.isNull is true.

This method acts as a bridge to treat Jackson's custom com.fasterxml.jackson.databind.node.NullNode (which represents a node constructed by the keyword null in either JSON or YAML) as Kotlin's native null type.

This method can be used in cases when a deserializer does not care about whether the value is missing or explicitly set to null.