BSON

 

                       JSON

 

It is binary file format.

 

It is standard file format.

 

 

BSON is faster than JSON.

 

JSON is comparatively less than BSON.

 

BSON having more space is consumed.

 

JSON comparatively less space.

 

 

BSON is used to store data.

 

JSON is used transmission the data.

 

 

BSON is lightweight, fast and traversable.

 

In JSON key value pair only used for transmission of data.

BSON which consist of a list of ordered elements containing a field name, type and a value. Field name types are typically string. JSON is language independent format used for asynchronous server browser communication.
BSON on the other hand just indexes on the relevant content and skips all the content which does not have to be in use.  

JSON does not skip rather skims through all the content.

 

Encoding and Decoding technique becomes faster.

 

There is no such technique.

In BSON another hand needs to be parsed as they are easy for machines to parse and generate. In JSON need not be parsed as they are in a human-readable format already.

 

 

Categorized in: