What is BSON and exactly how is it different from JSON?

前端 未结 7 1080
-上瘾入骨i
-上瘾入骨i 2021-01-29 19:03

I am just starting out with MongoDB and one of the things that I have noticed is that it uses BSON to store data internally. However the documentation is not exactly clear on wh

7条回答
  •  [愿得一人]
    2021-01-29 19:06

    This relatively short article gives a pretty good explanation of BSON and JSON: It talks about some of the problems with JSON, why BSON was invented, what problems it solves compared to JSON and how it could benefit you.

    https://www.compose.com/articles/from-json-to-bson-and-back/

    In my use case that article told me that serializing to JSON would work for me and I didn't need to serialize to BSON

提交回复
热议问题