るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.020秒)
トップページ > クエリ:Array[x] > クエリ:hash[x] > クエリ:to_json[x]

別のキーワード

  1. _builtin hash
  2. matrix hash
  3. hash []
  4. dbm to_hash
  5. _builtin to_hash

ライブラリ

検索結果

JSON::Generator::GeneratorMethods::Array#to_json(state_or_hash = nil) -> String (21220.0)

自身から生成した JSON 形式の文字列を返します。

...hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash
指定します。

//emlist[例][ruby]{
require "json"

[1, 2, 3].to_json...