LoginSignup
14
15

More than 5 years have passed since last update.

RubyでJSON.parseした際に、HashのキーをSymbolにする

Last updated at Posted at 2013-11-30
JSON.parse('{"key":"value"}', { symbolize_names: true }

参考

なんでオブジェクト指向スクリプト言語 Ruby リファレンスマニュアルには載ってないんだろう…?

2014/04/19:あれ?載ってる。

14
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
15