lib/mysql2xxxx/writer/json.rb in mysql2xxxx-0.2.0 vs lib/mysql2xxxx/writer/json.rb in mysql2xxxx-0.2.1
- old
+ new
@@ -1,6 +1,6 @@
-require 'json'
+require 'multi_json'
module Mysql2xxxx
class JSON < Writer
def to_file(f)
first = true
@@ -9,10 +9,10 @@
if first
first = false
else
f.write ','
end
- f.write ::JSON.generate(hsh)
+ f.write ::MultiJson.encode(hsh)
end
f.write ']'
nil
end
end