BSON (Binary JSON) yaiku format biner sing MongoDB gunakake kanggo nyimpen dokumen — nglanjutake JSON karo tipe data tambahan (kaya tanggal, ObjectId, binary, lan tipe angka sing bener) lan efisien kanggo nyimpen lan nglalui. Mangerteni tipe BSON membantu kowe nyimpen data kanthi bener.
BSON — binary JSON karo tipe-tipe luwih akeh
JSON has limited types (string, number, boolean, null, object, array).
BSON adds: ObjectId, Date, Binary, Decimal128, distinct Int/Long/Double, Timestamp, etc.
→ BSON is more efficient (binary, typed, traversable) and richer than plain JSON text.
Tipe data BSON umum
{
: (),
: ,
: (),
: (),
: (),
: ,
: ,
: (),
: (, ),
: [, ],
: { : },
:
}
