tags:

views:

39

answers:

2

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.

A: 

The BSON site is pointing at this

If you want to use it from MongoDB, take a look at this example

Bozho
Guess I could take the encoding part from Mongo and make it an external library. Was hoping from something more "mature", thanks for the tip.
Maxim Veksler
A: 

In order to get our Model in MongoDB we used google gson to convert our model into JSON first and then we used the JSON util parse method from MongoDB to parse our generated JSON string to a DBObject which you can put in your MongoDB. I don't know about performance to be honest.

Jeroen Rosenberg