class JSON::Ext::Parser
This is the JSON
parser implemented as a C extension. It can be configured to be used by setting
JSON.parser = JSON::Ext::Parser
with the method parser= in JSON
.
Constants
- Config
Public Class Methods
Source
# File ext/json/lib/json/ext.rb, line 17 def initialize(source, opts = nil) @source = source @config = Config.new(opts) end
Source
# File ext/json/lib/json/ext.rb, line 11 def parse(...) new(...).parse end
Also aliased as: parse