Json module

Json_Presence

enumsince 0.27.0Source

A field that distinguishes a key that is missing, a null and a value. As a struct member a missing key leaves .MISSING (never a missing-field error), null gives .NULL and any other value decodes into value and gives .SET. Encoding omits the key for .MISSING, writes null for .NULL and the value for .SET. Outside a struct member (the document, an array element) .MISSING encodes as null. free_json releases value when it is .SET.

Members

MISSING
NULL
SET

See also