30 July 2010

The Ruby Reflector

Topic

BSON

  Source Favicon
On paperplanes 5 months ago.
Email

Data is stored and queried in BSON, think binary-serialized JSON-like data. Features are a superset of JSON, adding support for regular expressions, date, binary data, and their own object id type. All strings are stored in UTF-8 in BSON, sorting on the other hand does not (yet), it uses strcmp, so the order might be different from what you'd expect. There's a sort of specification for BSON, if you're into that kind of stuff: [3] and [4]

Documents …

paperplanes.de Read
  Source Favicon
By scottswigart of How Software is Built 6 months ago.
Email

…like JSON, which is used pretty heavily in transporting data across the web now. We use BSON, which is basically like JSON except that it's binary and has more types. JSON doesn't have a native date type, and there are more types you need for web infrastructure.

Rather than hacking JSON, we just created a binary version that's both easier for computers to read and extensible. It has more types, so you can have as many types as you need for real web applications.

Scott

howsoftwareisbuilt.com Read