1291件ヒット
[1-100件を表示]
(0.084秒)
別のキーワード
ライブラリ
- ビルトイン (280)
- csv (135)
- erb (12)
- fiber (8)
- fiddle (12)
- json (396)
-
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) - optparse (24)
- ostruct (12)
- pathname (12)
- pp (4)
- prime (12)
- set (36)
- socket (12)
- stringio (48)
- strscan (24)
- thread (12)
クラス
- Addrinfo (12)
- Array (45)
- BigDecimal (12)
- CSV (48)
-
CSV
:: FieldInfo (36) -
CSV
:: Row (39) -
CSV
:: Table (12) - Class (12)
- Complex (12)
- Date (12)
- DateTime (12)
- ERB (12)
- Enumerator (12)
- Exception (12)
- Fiber (12)
-
Fiddle
:: Pointer (12) -
JSON
:: Parser (24) -
JSON
:: State (216) - Matrix (120)
-
Net
:: HTTPGenericRequest (12) - Object (34)
- OpenStruct (12)
- OptionParser (12)
- Pathname (12)
- Prime (12)
- Random (36)
- Range (45)
- Rational (12)
- Regexp (12)
- Set (36)
- String (12)
- StringIO (48)
- StringScanner (24)
- Struct (12)
-
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) - Time (12)
モジュール
- 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 (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (36)
-
OptionParser
:: Arguable (12)
キーワード
- === (7)
- JSON (12)
- [] (24)
- adjugate (12)
-
allow
_ nan? (12) -
array
_ nl (12) -
array
_ nl= (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)
- cover? (12)
- deconstruct (3)
-
def
_ class (12) - delete (24)
- deq (24)
- disjoint? (9)
- divide (18)
- each (12)
- element (12)
- entries (19)
- field (12)
- header (12)
- indent (12)
- indent= (12)
- index (12)
- jj (12)
- join (12)
-
json
_ creatable? (12) -
laplace
_ expansion (12) - line (12)
-
max
_ nesting (12) -
max
_ nesting= (12) - merge (12)
- none? (12)
-
object
_ nl (12) -
object
_ nl= (12) - one? (12)
- pack (21)
- parse (12)
- pop (24)
-
pretty
_ print (4) - print (12)
- printf (12)
- puts (12)
- rand (36)
- reject (12)
- reject! (9)
- sample (24)
-
scan
_ full (12) -
search
_ full (12) - shift (24)
- 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
_ value (12) - transfer (12)
-
unconverted
_ fields? (12) - unpack (12)
-
with
_ index (12) - write (12)
-
yield
_ self (16)
検索結果
先頭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 (18126.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 (9119.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 (9119.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 (9119.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 (9119.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 (9119.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 (9119.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 (9119.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 (9119.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"
//}...