minor: j2bson docs

This commit is contained in:
Kyle Banker 2010-07-12 14:08:33 -04:00
parent 027038fdff
commit f9cd266214
2 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,8 @@
require 'rubygems'
require 'bson'
# Note that this will not properly round-trip in all cases
# from the output generated by j2bson.
begin
require 'yajl'
rescue LoadError

View File

@ -25,6 +25,9 @@ require 'bson'
#
# We use json/pure because json/ext is broken with BSON::OrderedHash
# (probably for the same reasons that we can't use YAJL).
#
# Note that, at the moment, this will not properly round-trip
# in all cases from the output generated by b2json.
begin
require 'json/pure' # broken with 'json/ext'
rescue LoadError