/BSON

Native Swift library for BSON (http://bsonspec.org)

Primary LanguageSwiftMIT LicenseMIT

BSON

Swift 3.0 License Build Status

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.

Usage

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.

Supported Types

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

Supported features

  • ISO8601 for Extended JSON Dates
  • Really fast BSON Parsing and Serializing

WIP

  • Configurable ExtendedJSON using a fast JSON library