import PureYAML public extension PureYAML.JSON.Writer { /// Formatting options for the JSON writer. struct Options: Sendable, Equatable { /// Indent with newlines (`true`) or emit a single compact line (`false`). public var pretty: Bool /// Spaces per indentation level when `pretty`. public var indent: Int public init(pretty: Bool = true, indent: Int = 2) { self.pretty = pretty self.indent = indent } public static let pretty = Options(pretty: true, indent: 2) public static let compact = Options(pretty: false, indent: 0) } }