Document data path
Use a binary document without changing the application model.
BSON is useful when a document needs typed binary values or compact transport. loaders.gl decodes it into JSON-like objects and writes compatible objects back to the binary format.
Read
Decode BSON elements into JSON-like JavaScript values.
Types
Preserve format-specific binary, numeric, and date values.
Use
Pass the document to ordinary application logic.
Write
Encode JSON-like values as BSON binary documents.
Detailed guide
BSON format and API details
The reference below lists the document shape, supported value types, loader options, and writer behavior.
Loaders and Writers
LoaderBSONLoaderLoads BSON binary documents into JSON-like JavaScript objects.WriterBSONWriterWrites JSON-like JavaScript objects as BSON binary documents.
| Characteristic | Value |
|---|---|
| File Format | BSON |
| Data Format | Unstructured/JSON |
| File Type | Binary |
| File Extension | .bson |
| MIME Types | application/bson |
