Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joannis/bson2json

Swift conversions between PlanTeam.BSON and C7.JSON
https://github.com/joannis/bson2json

Last synced: about 1 month ago
JSON representation

Swift conversions between PlanTeam.BSON and C7.JSON

Awesome Lists containing this project

README

        

# BSON2JSON

[![Build Status](https://travis-ci.org/Joannis/BSON2JSON.svg?branch=master)](https://travis-ci.org/Joannis/BSON2JSON)
![Platforms](https://img.shields.io/badge/platforms-Linux%20%7C%20OS%20X-blue.svg)
![Package Managers](https://img.shields.io/badge/package%20managers-SwiftPM-yellow.svg)

> Swift conversions between [PlanTeam.BSON](https://github.com/PlanTeam/BSON) and [C7.JSON](https://github.com/open-swift/C7/blob/master/Sources/JSON.swift)

Based on [MongoDB's BSON description](https://docs.mongodb.com/v3.0/reference/mongodb-extended-json/), but implemented in a "best effort" fashion to make the output as close to native JSON as possible (so this is *not* Extended JSON exactly).

```swift
let myJSON = myBSON.toJSON()
```

```swift
let myBSON = myJSON.toBSON()
```

Notes
------------
Currently not being updated until BSON 4.0 releases

Contributing
------------
Please create an issue with a description of your problem or open a pull request with a fix.

License
-------
MIT

Authors
------
Honza Dvorsky - http://honzadvorsky.com, [@czechboy0](http://twitter.com/czechboy0)

Joannis Orlandos - http://orlandos.nl