json2object
json2object copied to clipboard
JsonWriter(ignoreNullOptionals) is not documented
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);