1if ENV['SIMPLECOV_COVERAGE'].to_i == 1
2  require 'simplecov'
3  SimpleCov.start do
4    add_filter "/tests/"
5  end
6end
7require 'json/common'
8
9module JSON
10  # This module holds all the modules/classes that implement JSON's
11  # functionality as C extensions.
12  module Ext
13    require 'json/ext/parser'
14    require 'json/ext/generator'
15    $DEBUG and warn "Using Ext extension for JSON."
16    JSON.parser = Parser
17    JSON.generator = Generator
18  end
19
20  JSON_LOADED = true unless defined?(::JSON::JSON_LOADED)
21end
22