Skip to content

JsonWriter(ignoreNullOptionals) is not documented #94

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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