るりまサーチ

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

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. matrix rank_e
  4. matrix det_e
  5. open3 capture2e

種類

ライブラリ

モジュール

キーワード

検索結果

JSON::ParserError (30000.0)

JSON のパースエラーを通知する例外です。

JSON のパースエラーを通知する例外です。

JSON::UnparserError (18000.0)

Alias of JSON::GeneratorError

...Alias of JSON::GeneratorError...

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

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

...by オブジェクトに変換して返します。

JSON.#parse よりも危険なデフォルト値が指定されているので
信頼できる文字列のみを入力として使用するようにしてください。

@param source JSON 形式の文字列を指定します。

@param options...
...オプションをハッシュで指定します。
指定可能なオプションは以下の通りです。

: :max_nesting
入れ子になっているデータの最大の深さを指定します。
数値を指定すると深さのチェックを行います。偽を指定すると深...
...ext = "[1,2,{\"name\":\"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...