A native, fast BSON library for Swift, written in Swift.
BSON is parsed and generated as specified for version 1.1 of the BSON specification.
The supported method for using this library is trough the Swift Package manager, like this:
import PackageDescription
let package = Package(
name: "MyApp",
dependencies: [.Package(url: "https://github.com/OpenKitten/BSON.git", majorVersion: 4)]
)
Check the documentation for more information.
All non-deprecated BSON 1.0 types are supported.
- Double
- String
- Document
- Array
- ObjectId
- Bool
- DateTime
- 32-bit integer
- 64-bit integer
- Null value
- Binary
- Regular Expression
- Min Key
- Max Key
- Timestamp
- Javascript Code
- Javascript Code with Scope
- Decimal128
- ISO8601 for Extended JSON Dates
- Really fast BSON Parsing and Serializing
- Configurable ExtendedJSON using a fast JSON library