7264a857fa06535bdee48e8cbb5356c8be454c0e
[packages/precise/mcollective.git] / lib / mcollective / vendor / json / lib / json / ext.rb
1 require 'json/common'
2
3 module JSON
4   # This module holds all the modules/classes that implement JSON's
5   # functionality as C extensions.
6   module Ext
7     require 'json/ext/parser'
8     require 'json/ext/generator'
9     $DEBUG and warn "Using Ext extension for JSON."
10     JSON.parser = Parser
11     JSON.generator = Generator
12   end
13
14   JSON_LOADED = true unless defined?(::JSON::JSON_LOADED)
15 end