Safe Haskell | None |
---|---|
Language | Haskell98 |
Convert JSON to BSON and the other way around.
Note that BSON has more data types than JSON, so some BSON to JSON conversions are not bijective and somewhat arbitrary.
This means that for some BSON objects:
bsonify . aesonify /= id bsonifyValue . aesonifyValue /= id
We tried to choose sensible translations on those cases.
Documentation
aesonifyValue :: Value -> Value Source
Converts a BSON value to JSON.
bsonifyValue :: Value -> Value Source
Converts a JSON value to BSON.