minor: j2bson docs
This commit is contained in:
parent
027038fdff
commit
f9cd266214
|
@ -20,6 +20,8 @@
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
require 'bson'
|
require 'bson'
|
||||||
|
|
||||||
|
# Note that this will not properly round-trip in all cases
|
||||||
|
# from the output generated by j2bson.
|
||||||
begin
|
begin
|
||||||
require 'yajl'
|
require 'yajl'
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
|
|
|
@ -25,6 +25,9 @@ require 'bson'
|
||||||
#
|
#
|
||||||
# We use json/pure because json/ext is broken with BSON::OrderedHash
|
# We use json/pure because json/ext is broken with BSON::OrderedHash
|
||||||
# (probably for the same reasons that we can't use YAJL).
|
# (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
|
begin
|
||||||
require 'json/pure' # broken with 'json/ext'
|
require 'json/pure' # broken with 'json/ext'
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
|
|
Loading…
Reference in New Issue