Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/joannis/bson2json
- Owner: Joannis
- License: mit
- Created: 2016-05-25T21:15:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-16T15:21:30.000Z (about 8 years ago)
- Last Synced: 2024-05-02T05:30:22.065Z (7 months ago)
- Language: Swift
- Size: 15.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 releasesContributing
------------
Please create an issue with a description of your problem or open a pull request with a fix.License
-------
MITAuthors
------
Honza Dvorsky - http://honzadvorsky.com, [@czechboy0](http://twitter.com/czechboy0)Joannis Orlandos - http://orlandos.nl