wrapOpt

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

Return

The object wrapped in a JsonValue or JsonValue.NULL.

Parameters

value

The object to wrap.