Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What does the bson stand for in mongodb?


Asked by Milan Valdez on Dec 08, 2021 MongoDB



It is a binary form for representing simple data structures, associative arrays (called objects or documents in MongoDB), and various data types of specific interest to MongoDB. The name "BSON" is based on the term JSON and stands for "Binary JSON".
One may also ask,
A record in MongoDB is a document, which is a data structure composed of field and value pairs. The values of the fields may include other documents, arrays, and arrays of documents (a group of documents is a collection, such as a table in RDBMS).
Also, Binary JSON (BSON) MongoDB represents JSON documents in binary-encoded format called BSON behind the scenes. BSON extends the JSON model to provide additional data types, ordered fields, and to be efficient for encoding and decoding within different languages.
Additionally,
MongoDB is a NoSQL database that operates with collections and documents. Each document created on MongoDB has a unique object ID property. So when creating a document without entering an ID, the document will be created with an auto-generated ID.
Consequently,
MongoDB is a non-relational document database that provides support for JSON -like storage. The MongoDB database has a flexible data model that enables you to store unstructured data, and it provides full indexing support, and replication with rich and intuitive APIs. Below is an example of a JSON-like document in a MongoDB database: