Cyanide v0.5.1 BsonJson View Source
Converts a Bson document into a JSON document.
Link to this section Summary
Functions
Returns a json representation of set of Bson documents transcodeing the following element type
Link to this section Functions
Link to this function
stringify(bson) View Source
Returns a json representation of set of Bson documents transcodeing the following element type:
- int32 -> number
- int64 -> number (capped at js maximum)
- float -> number
- string -> string (utf8)
- document -> object
- array document -> array
- objectId -> 24 character length hexadecimal string