るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.015秒)

別のキーワード

  1. sax2parser listen
  2. rexml/parsers/sax2parser listen
  3. parser parse
  4. json parser
  5. parser new

ライブラリ

モジュール

検索結果

JSON.#parse!(source, options = {}) -> object (18107.0)

与えられた JSON 形式の文字列を Ruby オブジェクトに変換して返します。

...:\"tanaka\",\"age\":19}, NaN]"
JSON.parse!(json_text)
# => [1, 2, {"name"=>"tanaka", "age"=>19}, NaN]

JSON.parse!(json_text, symbolize_names: true)
# => [1, 2, {:name=>"tanaka", :age=>19}, NaN]

JSON.parse(json_text) # => unexpected token at 'NaN]' (JSON::ParserError)
//}

@see JSON::Parser#parse...