1. JSON::
  2. Ext::
  3. Parser

class JSON::Ext::Parser

This is theJSON parser implemented as a C extension. It can be configured to be used by setting

JSON.parser =JSON::Ext::Parser

with the method parser= inJSON.

Constants

Config

Public Class Methods

Source
# File ext/json/lib/json/ext.rb, line 17definitialize(source,opts =nil)@source =source@config =Config.new(opts)end
Source
# File ext/json/lib/json/ext.rb, line 11defparse(...)new(...).parseend
Also aliased as: parse

Public Instance Methods

Source
# File ext/json/lib/json/ext.rb, line 26defparse@config.parse(@source)end
Source
# File ext/json/lib/json/ext.rb, line 22defsource@source.dupend