Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Variables Json.omitWhenEmpty

1
2
3

Documentation

If true, then if the attached field is empty, it won't be written when serialising, and it will be set to its .initvalue when deserialising a JSON value where the field is null/absent.

(If setting the field to .initisn't able to compile for some reason, then the value of the field is undefined during deserilisation cases where this flag is relevant).

A field is empty if it has a .lengthand it returns the value 0.

ON THIS PAGE