| Server IP : 162.214.74.102 / Your IP : 216.73.217.21 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/JSON/ |
Upload File : |
U:RDoc::AnyMethod[iI" generate:EFI"JSON#generate;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"LGenerate a JSON document from the Ruby data structure _obj_ and return ;TI"+it. _state_ is * a JSON::State object,;To:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"3or a Hash like object (responding to to_hash),;To;;0; [o; ; [I"8an object convertible into a hash by a to_h method,;To; ; [I"4that is used as or to configure a State object.;To:RDoc::Markup::BlankLine o; ; [I"QIt defaults to a state object, that creates the shortest possible JSON text ;TI"Min one line, checks for circular data structures and doesn't allow NaN, ;TI"Infinity, and -Infinity.;T@o; ; [I"0A _state_ hash can have the following keys:;To;;; ;[o;;0; [o; ; [I"<*indent*: a string used to indent levels (default: ''),;To;;0; [o; ; [I"K*space*: a string that is put after, a : or , delimiter (default: ''),;To;;0; [o; ; [I"R*space_before*: a string that is put before a : pair delimiter (default: ''),;To;;0; [o; ; [I"Q*object_nl*: a string that is put at the end of a JSON object (default: ''),;To;;0; [o; ; [I"O*array_nl*: a string that is put at the end of a JSON array (default: ''),;To;;0; [o; ; [I"A*allow_nan*: true if NaN, Infinity, and -Infinity should be ;TI"Egenerated, otherwise an exception is thrown if these values are ;TI"1encountered. This options defaults to false.;To;;0; [o; ; [I"E*max_nesting*: The maximum depth of nesting allowed in the data ;TI"Kstructures from which JSON is to be generated. Disable depth checking ;TI"4with :max_nesting => false, it defaults to 100.;T@o; ; [I"OSee also the fast_generate for the fastest creation method with the least ;TI"Famount of sanity checks, and the pretty_generate method for some ;TI" defaults for pretty output.;T: @fileI" ext/json/lib/json/common.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(obj, opts = nil);T@UFI" JSON;FcRDoc::NormalModule00