Handle BsonDateTime and BsonBoolean in toJsonObject conversion #4

Merged
chanteckwei merged 4 commits from updates/add-date-and-boolean-support into main 2026-09-11 15:59:38 +08:00
Member

YouTrack Reference

#RDPR-171

Change Logs

  • BsonDocument.toJsonObject() now correctly handles BsonDateTime fields, converting them to ISO-8601 strings instead of being silently dropped.
  • Also added handling for BsonBoolean, which was previously missing from the conversion and would silently disappear from the output JSON.
# YouTrack Reference #RDPR-171 # Change Logs - `BsonDocument.toJsonObject()` now correctly handles `BsonDateTime` fields, converting them to ISO-8601 strings instead of being silently dropped. - Also added handling for `BsonBoolean`, which was previously missing from the conversion and would silently disappear from the output JSON.
chinyeewen added this to the v0.1.2 milestone 2026-09-11 15:47:44 +08:00
chinyeewen self-assigned this 2026-09-11 15:47:44 +08:00
chinyeewen added 4 commits 2026-09-11 15:47:45 +08:00
chinyeewen requested review from chanteckwei 2026-09-11 15:47:45 +08:00
chanteckwei approved these changes 2026-09-11 15:59:13 +08:00
chanteckwei merged commit 30bbe58e49 into main 2026-09-11 15:59:38 +08:00
chanteckwei deleted branch updates/add-date-and-boolean-support 2026-09-11 15:59:38 +08:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: neuon-ai/bson-utility-kotlin#4