wrapOpt

open fun wrapOpt(@Nullable object: Any): JsonValue

Wraps any valid object into a JsonValue. If the object is unable to be wrapped, NULL will be returned instead.

Return

The object wrapped in a JsonValue or NULL.

Parameters

object

The object to wrap.