BSON 변환기
MongoDB BSON과 Extended JSON 변환
ObjectId 도구
BSON이란?
- • MongoDB에서 사용하는 바이너리 JSON 형식
- • Extended JSON은 BSON을 텍스트로 표현
- • ObjectId는 12바이트 고유 식별자
- • Date, Binary 등 추가 데이터 타입 지원
BSON & MongoDB Extended JSON Guide
What is BSON?
BSON (Binary JSON) is a binary-encoded serialization of JSON-like documents. MongoDB uses BSON as its primary data storage and network transfer format. BSON supports additional data types not available in standard JSON.
Extended JSON Format
MongoDB Extended JSON is a string format for representing BSON documents. It allows you to work with BSON types in a human-readable JSON format:
ObjectId: {"$oid": "507f1f77bcf86cd799439011"}
Date: {"$date": "2024-01-01T00:00:00Z"}
Long: {"$numberLong": "9223372036854775807"}
Binary: {"$binary": {"base64": "...", "subType": "00"}}
ObjectId Structure
A MongoDB ObjectId is a 12-byte identifier consisting of:
TTTTTTTTMMMMMMPPPPCCCCCC
T (8 chars): Unix timestamp
M (6 chars): Machine identifier
P (4 chars): Process ID
C (6 chars): Counter
Related Tools
관련 도구
Data Format 전체 보기함께 쓰면 좋은 도구를 확인하세요.