⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
JSON
/
View File Name :
generate-i.ri
U:RDoc::AnyMethod[iI" generate:ETI"JSON#generate;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I";Returns a \String containing the generated \JSON data.;To:RDoc::Markup::BlankLine o; ; [I"7See also JSON.fast_generate, JSON.pretty_generate.;T@o; ; [I"@Argument +obj+ is the Ruby object to be converted to \JSON.;T@o; ; [I"PArgument +opts+, if given, contains a \Hash of options for the generation. ;TI"ESee {Generating Options}[#module-JSON-label-Generating+Options].;T@S:RDoc::Markup::Rule:weighti@o; ; [I"IWhen +obj+ is an \Array, returns a \String containing a \JSON array:;To:RDoc::Markup::Verbatim; [I"*obj = ["foo", 1.0, true, false, nil] ;TI"json = JSON.generate(obj) ;TI"-json # => '["foo",1.0,true,false,null]' ;T:@format0o; ; [I"HWhen +obj+ is a \Hash, returns a \String containing a \JSON object:;To;; [I")obj = {foo: 0, bar: 's', baz: :bat} ;TI"json = JSON.generate(obj) ;TI"1json # => '{"foo":0,"bar":"s","baz":"bat"}' ;T;0o; ; [I"=For examples of generating from other Ruby objects, see ;TI"b{Generating \JSON from Other Objects}[#module-JSON-label-Generating+JSON+from+Other+Objects].;T@S;; i@o; ; [I"CRaises an exception if any formatting option is not a \String.;T@o; ; [I"?Raises an exception if +obj+ contains circular references:;To;; [I"*a = []; b = []; a.push(b); b.push(a) ;TI"?# Raises JSON::NestingError (nesting of 100 is too deep): ;TI"JSON.generate(a);T;0: @fileI" ext/json/lib/json/common.rb;T:0@omit_headings_from_table_of_contents_below0I"2JSON.generate(obj, opts = nil) -> new_string ;T0[ I"(obj, opts = nil);T@:FI" JSON;TcRDoc::NormalModule00