るりまサーチ

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

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. rsa n
  3. rsa n=
  4. openssl n=
  5. openssl n

種類

ライブラリ

モジュール

キーワード

検索結果

JSON::ParserError (21000.0)

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

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

JSON::UnparserError (12000.0)

Alias of JSON::GeneratorError

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

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

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

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

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

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

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

: :max_nesting
入れ子になっているデータの最大の深さを指定します。
数値を指定すると深さのチェック...
...on"

json_text = "[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...