lib/docparser/output/json_output.rb in docparser-0.1.2 vs lib/docparser/output/json_output.rb in docparser-0.1.3
- old
+ new
@@ -1,6 +1,6 @@
-require 'json'
+require 'multi_json'
module DocParser
# The JSONOutput class generates a JSON file containing all rows as seperate
# Array elements
# @see Output
class JSONOutput < Output
@@ -23,10 +23,10 @@
@doc[@header[counter]] = row[counter]
else
@doc[@header[counter]] = ''
end
end
- @file << JSON.dump(@doc)
+ @file << MultiJson.dump(@doc)
end
def footer
@file << ']'
end
\ No newline at end of file