Skip to content

Commit f8fa61d

Browse files
committed
RUBY-135 Use yajl in JSON compatibility mode for j2bson
1 parent af0ecde commit f8fa61d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bin/j2bson

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ require 'bson'
2929
# Note that, at the moment, this will not properly round-trip
3030
# in all cases from the output generated by b2json.
3131
begin
32-
require 'json/pure' # broken with 'json/ext'
32+
require 'yajl/json_gem' # broken with 'json/ext'
3333
rescue LoadError
34-
puts "This script requires json/pure. Please install one of the following:"
35-
puts " gem install json_pure"
36-
puts " gem install json"
34+
puts "This script requires yajl. Please install the following:"
35+
puts " gem install yajl"
3736
Process.exit
3837
end
3938

0 commit comments

Comments
 (0)