Default

public enum Default

Default values used for JSONFormat

Available Defaults

  • Default attributes to output in the JSON.

    Default:

    Set(JSONFormat.Attribute.allCases)
    

    Declaration

    Swift

    public static let attributes: Set<JSONFormat.Attribute>
  • A set of options to apply to the output.

    Default:

    An empty set.
    

    See also

    JSONFormat.Option

    Declaration

    Swift

    public static let options: Set<JSONFormat.Option>
  • The terminator to use at the end of each entry.

    Default:

    ",\n"
    

    Declaration

    Swift

    public static let terminator: String