1718件ヒット
[1-100件を表示]
(0.088秒)
別のキーワード
ライブラリ
- ビルトイン (289)
- csv (135)
- date (12)
- delegate (12)
- digest (12)
- erb (12)
- fiber (8)
- fiddle (12)
- gdbm (36)
-
io
/ console (36) - json (408)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) - matrix (120)
-
net
/ http (12) -
net
/ pop (36) - openssl (60)
- optparse (24)
- ostruct (34)
- pathname (12)
- pp (4)
- prime (12)
- pstore (36)
- sdbm (24)
- set (36)
- shell (18)
-
shell
/ command-processor (6) -
shell
/ filter (12) - socket (36)
- stringio (48)
- strscan (24)
- thread (12)
- thwait (12)
-
webrick
/ log (12) - zlib (36)
クラス
- Addrinfo (24)
- Array (45)
- BigDecimal (12)
- Binding (9)
- CSV (48)
-
CSV
:: FieldInfo (36) -
CSV
:: Row (39) -
CSV
:: Table (12) - Class (12)
- Complex (12)
- Date (12)
- DateTime (24)
- ERB (12)
- Enumerator (12)
- Exception (12)
- Fiber (12)
-
Fiddle
:: Pointer (12) - GDBM (36)
- IO (36)
-
JSON
:: Parser (24) -
JSON
:: State (216) - Matrix (120)
-
Net
:: HTTPGenericRequest (12) -
Net
:: POPMail (36) - Object (34)
-
OpenSSL
:: ASN1 :: ObjectId (60) - OpenStruct (34)
- OptionParser (12)
- PStore (36)
- Pathname (12)
- Prime (12)
- Random (36)
- Range (45)
- Rational (12)
- Regexp (12)
- SDBM (24)
- Set (36)
- Shell (18)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (12) - String (12)
- StringIO (48)
- StringScanner (24)
- Struct (12)
-
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) - ThreadsWait (12)
- Time (12)
- UNIXSocket (12)
-
WEBrick
:: BasicLog (12) -
Zlib
:: Deflate (12) -
Zlib
:: GzipWriter (24)
モジュール
- Enumerable (48)
-
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (24) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (60)
-
OptionParser
:: Arguable (12)
キーワード
- << (12)
- === (7)
- DelegateClass (12)
- Digest (12)
- JSON (12)
- [] (36)
- adjugate (12)
- all (12)
-
allow
_ nan? (12) -
array
_ nl (12) -
array
_ nl= (12) - bind (12)
-
body
_ stream (12) -
check
_ circular? (12) -
cofactor
_ expansion (12) - column (24)
- component (12)
- configure (12)
- conj (12)
- conjugate (12)
-
connect
_ from (12) - convert (36)
- cooked (12)
- cover? (12)
- deconstruct (3)
-
def
_ class (12) - delete (60)
- deq (24)
- dig (10)
- disjoint? (9)
- divide (18)
- each (12)
- element (12)
- entries (19)
- fetch (36)
- field (12)
- flush (12)
- header (12)
- indent (12)
- indent= (12)
- index (12)
- irb (9)
- jisx0301 (12)
- jj (12)
- join (18)
-
join
_ nowait (6) -
json
_ creatable? (12) -
laplace
_ expansion (12) - line (12)
- ln (12)
-
long
_ name (12) - mail (12)
-
max
_ nesting (12) -
max
_ nesting= (12) - merge (12)
- noecho (12)
- none? (12)
-
object
_ nl (12) -
object
_ nl= (12) - oid (12)
- one? (12)
- pack (21)
- params (12)
- parse (12)
- pop (36)
-
pretty
_ print (4) - print (12)
- printf (12)
- pushd (6)
- pushdir (6)
- putc (12)
- puts (12)
- rand (36)
- raw (12)
-
recv
_ io (12) - reject (12)
- reject! (21)
- sample (24)
-
scan
_ full (12) -
search
_ full (12) - shift (24)
-
short
_ name (12) - sn (12)
- source (12)
- space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) - then (14)
-
to
_ a (19) -
to
_ h (24) -
to
_ hash (12) -
to
_ json (228) -
to
_ json _ raw _ object (12) -
to
_ value (12) - transact (18)
- transaction (12)
- transfer (12)
-
unconverted
_ fields? (12) - unpack (12)
-
with
_ index (12) - write (12)
-
yield
_ self (16) - | (6)
検索結果
先頭5件
- Kernel
# j(*objects) -> nil - JSON
:: Generator :: GeneratorMethods :: Array # to _ json(state _ or _ hash = nil) -> String - JSON
:: Generator :: GeneratorMethods :: FalseClass # to _ json(state _ or _ hash = nil) -> String - JSON
:: Generator :: GeneratorMethods :: Float # to _ json(state _ or _ hash = nil) -> String - JSON
:: Generator :: GeneratorMethods :: Hash # to _ json(state _ or _ hash = nil) -> String
-
Kernel
# j(*objects) -> nil (18114.0) -
与えられたオブジェクトを JSON 形式の文字列で標準出力に一行で出力します。
...与えられたオブジェクトを JSON 形式の文字列で標準出力に一行で出力します。
@param objects JSON 形式で出力したいオブジェクトを指定します。
//emlist[例][ruby]{
require "json"
j([1,2,{"name" => "tanaka","age" => 19}])
# => [1,2,{"name":"tanaka","... -
JSON
:: Generator :: GeneratorMethods :: Array # to _ json(state _ or _ hash = nil) -> String (9107.0) -
自身から生成した JSON 形式の文字列を返します。
...自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を......指定します。
//emlist[例][ruby]{
require "json"
[1, 2, 3].to_json # => "[1,2,3]"
//}... -
JSON
:: Generator :: GeneratorMethods :: FalseClass # to _ json(state _ or _ hash = nil) -> String (9107.0) -
自身から生成した JSON 形式の文字列を返します。
...ら生成した JSON 形式の文字列を返します。
"false" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new......の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
false.to_json # => "false"
//}... -
JSON
:: Generator :: GeneratorMethods :: Float # to _ json(state _ or _ hash = nil) -> String (9107.0) -
自身から生成した JSON 形式の文字列を返します。
...自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を......指定します。
//emlist[例][ruby]{
require "json"
(1.0).to_json # => "1.0"
//}... -
JSON
:: Generator :: GeneratorMethods :: Hash # to _ json(state _ or _ hash = nil) -> String (9107.0) -
自身から生成した JSON 形式の文字列を返します。
...自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を......指定します。
//emlist[例][ruby]{
require "json"
person = { "name" => "tanaka", "age" => 19 }
person.to_json # => "{\"name\":\"tanaka\",\"age\":19}"
//}... -
JSON
:: Generator :: GeneratorMethods :: Integer # to _ json(state _ or _ hash = nil) -> String (9107.0) -
自身から生成した JSON 形式の文字列を返します。
...自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を......指定します。
//emlist[例][ruby]{
require "json"
10.to_json # => "10"
//}... -
JSON
:: Generator :: GeneratorMethods :: NilClass # to _ json(state _ or _ hash = nil) -> String (9107.0) -
自身から生成した JSON 形式の文字列を返します。
...ら生成した JSON 形式の文字列を返します。
"null" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の......引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
nil.to_json # => "null"
//}... -
JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String (9107.0) -
自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
...にした結果を JSON 形式の文字列に変換して返します。
このメソッドはあるオブジェクトに to_json メソッドが定義されていない場合に使用する
フォールバックのためのメソッドです。
@param state_or_hash 生成する JSON 形式の文......列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
class Person
attr :name, :age
def initialize(name,......age)
@name, @age = name, age
end
end
tanaka = Person.new("tanaka", 29)
tanaka.to_json # => "\"#<Person:0x00007ffdec0167c8>\""
tanaka.method(:to_json).owner # => JSON::Ext::Generator::GeneratorMethods::Object
//}... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json(state _ or _ hash = nil) -> String (9107.0) -
自身から生成した JSON 形式の文字列を返します。
...から生成した JSON 形式の文字列を返します。
自身のエンコードは UTF-8 であるべきです。
"\u????" のように UTF-16 ビッグエンディアンでエンコードされた文字列を返すことがあります。
@param state_or_hash 生成する JSON 形式の文...... JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
puts "test".to_json # => "test"
puts '"'.to_json # => "\""
puts "\\".to_jso......n # => "\\"
puts "𤘩宮城".to_json(ascii_only: true) # => "\ud851\ude29\u5bae\u57ce"
//}...