Skip to content

JsonWriter(ignoreNullOptionals) is not documented #94

@EliteMasterEric

Description

@EliteMasterEric

The ignoreNullOptionals argument to the JsonWriter is currently completely undocumented. This option requires passing true as the argument to the JsonWriter (not the write call itself), and allows you to mark nullable values as @:optional, which excludes the value from the serialized output if it is null.

    var writer = new json2object.JsonWriter<InputType>(true);
    return writer.write(input, pretty ? '  ' : null);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions