D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
JSON
/
Ext
/
Parser
/
Filename :
new-c.ri
back
Copy
U:RDoc::AnyMethod[iI"new:ETI"JSON::Ext::Parser::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"FCreates a new JSON::Ext::Parser instance for the string _source_.;To:RDoc::Markup::BlankLine o; ; [I"MIt will be configured by the _opts_ hash. _opts_ can have the following ;TI" keys:;T@o; ; [I"(_opts_ can have the following keys:;To:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"L*max_nesting*: The maximum depth of nesting allowed in the parsed data ;TI"Mstructures. Disable depth checking with :max_nesting => false|nil|0, it ;TI"defaults to 100.;To;;0; [o; ; [I"G*allow_nan*: If set to true, allow NaN, Infinity and -Infinity in ;TI"Ndefiance of RFC 4627 to be parsed by the Parser. This option defaults to ;TI"false.;To;;0; [o; ; [ I"F*symbolize_names*: If set to true, returns symbols for the names ;TI"G(keys) in a JSON object. Otherwise strings are returned, which is ;TI"?also the default. It's not possible to use this option in ;TI"4conjunction with the *create_additions* option.;To;;0; [o; ; [I"D*create_additions*: If set to false, the Parser doesn't create ;TI"Madditions even if a matching class and create_id was found. This option ;TI"defaults to false.;To;;0; [o; ; [I"T*object_class*: Defaults to Hash. If another type is provided, it will be used ;TI"Iinstead of Hash to represent JSON objects. The type must respond to ;TI"I+new+ without arguments, and return an object that respond to +[]=+.;To;;0; [o; ; [I"S*array_class*: Defaults to Array If another type is provided, it will be used ;TI"Hinstead of Hash to represent JSON arrays. The type must respond to ;TI"H+new+ without arguments, and return an object that respond to +<<+.;To;;0; [o; ; [I"I*decimal_class*: Specifies which class to use instead of the default;To:RDoc::Markup::Verbatim; [I"K(Float) when parsing decimal numbers. This class must accept a single ;TI"(string argument in its constructor.;T:@format0: @fileI"ext/json/parser/parser.c;T:0@omit_headings_from_table_of_contents_below0I"new(source, opts => {}) ;T0[ I"(*args);T@LFI"Parser;TcRDoc::NormalClass00