minor: j2bson docs
This commit is contained in:
parent
027038fdff
commit
f9cd266214
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue