Updated mcollective.init according to OSCI-658
[packages/precise/mcollective.git] / lib / mcollective / vendor / json / lib / json / ext.rb
diff --git a/lib/mcollective/vendor/json/lib/json/ext.rb b/lib/mcollective/vendor/json/lib/json/ext.rb
new file mode 100644 (file)
index 0000000..7264a85
--- /dev/null
@@ -0,0 +1,15 @@
+require 'json/common'
+
+module JSON
+  # This module holds all the modules/classes that implement JSON's
+  # functionality as C extensions.
+  module Ext
+    require 'json/ext/parser'
+    require 'json/ext/generator'
+    $DEBUG and warn "Using Ext extension for JSON."
+    JSON.parser = Parser
+    JSON.generator = Generator
+  end
+
+  JSON_LOADED = true unless defined?(::JSON::JSON_LOADED)
+end