Skip to main content
JavaScript Object Notation (JSON) is an open, human and machine-readable standard that facilitates data interchange, and along with XML is the main format for data interchange used on the modern web. JSON supports all the basic data types you’d expect: numbers, strings, and boolean values, as well as arrays and hashes.

A JSON database returns query results that can be easily parsed, with little or no transformation, directly by JavaScript.
MongoDB use JSON documents in order to store records, just as tables and rows store records in a relational database.
An example of JSON is:


BSON or BinaryJSON is the internal representation of data in the mongo database.

The main advantages of BSON are:
·      * Fast Scanability

·       *Data Types – Extra data types like date datatype, BinData (Byte Array-Images etc),ObjectId

The internal representation of the BSON format will be as below:

Comments