BsonJson

Converts a Bson document into a JSON document.

Source

Summary

stringify(bson)

Returns a json representation of set of Bson documents transcodeing the following element type:

Functions

stringify(bson)

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
Source