BSON is the binary encoding of JSON-like documents that MongoDB uses when storing documents in collections. It adds support for data types like Date and binary that aren’t supported in JSON.
In practice, you don’t have to know much about BSON when working with MongoDB, you just need to use the native types of your language and the supplied types (e.g. ObjectId) of its driver when constructing documents and they will be mapped into the appropriate BSON type by the driver.
Related Posts:
- Failed to start mongod.service: Unit mongod.service not found
- Could not connect to MongoDB on the provided host and port
- MongoDb shuts down with Code 100
- Python dictionary : removing u’ chars
- How do you put an image file in a json object?
- MongoDB: How to find the exact version of installed MongoDB
- MongoDB Show all contents from all collections
- Uninstall MongoDB on Mac OS X
- MongoError: failed to connect to server [localhost:27017] on first connect
- MongoDB: exception in initAndListen: 20 Attempted to create a lock file on a read-only directory: /data/db, terminating
- Mongo waiting on 27017 even after reinstall
- Is there a query language for JSON?
- How do you query for “is not null” in Mongo?
- Why am I seeing “TypeError: string indices must be integers”?
- How to prettyprint a JSON file?
- Can comments be used in JSON?
- pandas read_json: “If using all scalar values, you must pass an index”
- Can comments be used in JSON?
- Parse JSON in JavaScript? [duplicate]
- JSON parsing error syntax error unexpected end of input
- Angular: ‘Cannot find a differ supporting object ‘[object Object]’ of type ‘object’. NgFor only supports binding to Iterables such as Arrays’
- Why am I seeing “TypeError: string indices must be integers”?
- C# HttpClient An existing connection was forcibly closed by the remote host
- “SyntaxError: Unexpected token < in JSON at position 0"
- How to parse JSON in Java
- Grabbing the current viewer count for youtube live streaming
- “SyntaxError: Unexpected token < in JSON at position 0"
- How do I POST JSON data with cURL?
- How can I parse JSON with C#?
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- Use of PUT vs PATCH methods in REST API real life scenarios
- How do I POST JSON data with cURL?
- SyntaxError: Unexpected token o in JSON at position 1
- What is the easiest way to convert an Excel spreadsheet with tabular data to JSON? [closed]
- Converting dictionary to JSON
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- SyntaxError: Unexpected token o in JSON at position 1
- What is JSONP, and why was it created?
- TypeError: Converting circular structure to JSON in nodejs
- Can comments be used in JSON?
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- Use a JSON array with objects with javascript
- Yahoo Finance All Currencies quote API Documentation
- How to parse data in JSON format?
- Array of JSON Objects
- Chrome sendrequest error: TypeError: Converting circular structure to JSON
- How to convert JSON to XML or XML to JSON?
- How to reformat JSON in Notepad++?
- Fetch: POST JSON data
- json.dumps vs flask.jsonify
- Select objects based on value of variable in object using jq
- Uncaught SyntaxError: Unexpected token u in JSON at position 0
- TypeError: unhashable type: ‘dict’, when dict used as a key for another dict
- uncaught syntaxerror unexpected token U JSON
- What is the difference between YAML and JSON?
- How to install JQ on Mac on the command line?
- Unexpected token u in JSON at position 0 (but only sometimes)
- How to read an external local JSON file in JavaScript?
- Representing null in JSON
- What is the correct JSON content type?
- SocketException: Address already in use MONGODB
- SyntaxError: Unexpected token o in JSON at position 1
- SyntaxError: Unexpected token o in JSON at position 1
- pretty-print JSON using JavaScript
- pretty-print JSON using JavaScript
- mongoError: Topology was destroyed
- What is deserialize and serialize in JSON?
- How to read an external local JSON file in JavaScript?
- nodemon – app crashed – waiting for file changes before starting
- “Topology was destroyed” when using MongoDB with native driver and Express.js
- C/C++ JSON parser
- Error: getaddrinfo ENOTFOUND in nodejs for get call
- Fastest JSON reader/writer for C++
- Representing null in JSON
- What is the convention in JSON for empty vs. null?
- YAML equivalent of array of objects in JSON
- What is the correct JSON content type?
- What is the correct JSON content type?
- Are multi-line strings allowed in JSON?
- is not JSON serializable
- data.map is not a function
- Parsing a JSON string in Ruby
- Are multi-line strings allowed in JSON?
- What is the “right” JSON date format?
- How to make a class JSON serializable
- Convert a python dict to a string and back
- TypeError: Object of type ‘bytes’ is not JSON serializable
- Nested JSON objects – do I have to use arrays for everything?
- Mongoose: findOneAndUpdate doesn’t return updated document
- How to convert jsonString to JSONObject in Java
- Uncaught TypeError: Cannot read property ‘length’ of undefined
- What is the “right” JSON date format?
- Mongod complains that there is no /data/db folder
- Parsing JSON with Unix tools
- Remove properties from objects (JavaScript)
- Python ValueError: No JSON object could be decoded
- How to POST JSON data with Python Requests?
- Converting JSON data to Java object
- Python error load JSON code of google API
- Cannot use object of type stdClass as array?