bson

Protocol Buffers versus JSON or BSON

Does anyone have any information on the performance characteristics of Protocol Buffers versus BSON (binary JSON) or versus JSON in general? Wire size Serialization speed Deserialization speed These seem like good binary protocols for use over HTTP. I'm just wondering which would be better in the long run for a C# environment. Here...

Is Base64 Encoded BSON smaller then BSON?

Is Base64 Encoded BSON smaller then BSON? ...

Creating BSON object from JSON string

Hi, I have Java app that takes data from external app. Incoming JSONs are in Strings. I would like to parse that Strings and crate BSON objects. Unfortunate I can't find API for that in Java's BSON implementation. Do I have use external parser for that like GSON? ...

Mongo JSON document -> JSON -> BSON

I am working with Node.js to build a web socket server that uses mongodb. I am using node-mongodb-native as the library to access mongo db. When I call console.log(sys.inspect(item)) on an object from the db I get something that looks like this: { _id: { id: 'L?#&\u008e\u00ad\u000e\u008f\u0014\u0005\u0000\u0000' } , y: 3 , favorite_c...

Why is it called BSON?

So BSON is JSON serialized right? {"hello": "world"} → "\x16\x00\x00\x00\x02hello\x00 \x06\x00\x00\x00world\x00\x00" But why is it called Binary Json? What does binary stands for? I always tend to associate binary with 10101010101. But the BSON serialization format above wasn't in 101010101010 form. Could someone explain for me ...

Rails 3, MongoId & bson version problem

I just updated to Rails 3 final. Now I'm having problems with MongoId, Mongo's Ruby driver & bson. When I try to run Rails, I get "You have already activated bson 1.0.7, but your Gemfile requires bson 1.0.4. Consider using bundle exec. (Gem::LoadError)". MongoId requires bson_ext 1.0.4 so I have gem "bson_ext", "1.0.4" in my Gemfile. I ...

BSON library for java?

Hello, We have good support for JSON in java http://blog.locut.us/main/2009/10/14/which-is-the-best-java-json-library.html but what about BSON. What library do you know that provides BSON support for java? It should obviously be efficient in runtime. Thanks, Maxim. ...

java types in org.bson.BSONObject

Hi all, I'm currently learning the BSON java library for mongodb and I'm trying to transform a org.bson.BSONObject into XML in order to transform it with a XSLT stylesheet. What kind of java types can I find as values in a BSONObject from a Mongodb ? Of course there will be: BSONObject (internal doc) java.lang.String ??? what are ...

Convert MongoDB BSON ObjectId (oid) to generated time in Objective-C?

I've found this: function: http://github.com/timburks/NuMongoDB/blob/master/src/bson.c#L128 bytes: http://github.com/timburks/NuMongoDB/blob/master/src/platform_hacks.h#L55 struct: http://github.com/timburks/NuMongoDB/blob/master/src/bson.h#L70 But how exactly would I use this for my iPhone app that gets the oid as a string from the se...

BSON serializer/deserializer

Hi, is there a BSON serializer/deserializer library out there for PHP or Java? Thanks ...