class JSON::Ext::ParserConfig

Public Class Methods

Creates a new JSON::Ext::ParserConfig instance.

Argument opts, if given, contains a Hash of options for the parsing. See Parsing Options.

static VALUE cParserConfig_initialize(VALUE self, VALUE opts)
{
    rb_check_frozen(self);
    GET_PARSER_CONFIG;

    parser_config_init(config, opts, self, false);

    return self;
}

Public Instance Methods

Parses the current JSON text source and returns the complete data structure as a result. It raises JSON::ParserError if fail to parse.

static VALUE cParserConfig_parse(VALUE self, VALUE Vsource)
{
    GET_PARSER_CONFIG;
    return cParser_parse(config, Vsource);
}