Format
public struct Format
A struct representing the supported string formats based on the JSON standard that describe how to represent BSON documents in JSON using standard JSON types and/or type wrapper objects.
-
Canonical Extended JSON Format: Emphasizes type preservation at the expense of readability and interoperability.
Declaration
Swift
public static let canonical: ExtendedJSONEncoder.Format
-
Relaxed Extended JSON Format: Emphasizes readability and interoperability at the expense of type preservation.
Declaration
Swift
public static let relaxed: ExtendedJSONEncoder.Format