{"image_url":null,"url":"https://rdera.hatenadiary.org/entry/20110415/1302852914","blog_title":"rdera\u30ed\u30b0","version":"1.0","author_name":"rdera","height":"190","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/rdera/","blog_url":"https://rdera.hatenadiary.org/","type":"rich","width":"100%","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frdera.hatenadiary.org%2Fentry%2F20110415%2F1302852914\" title=\"ruby\u3067json\u3092\u51e6\u7406\u3059\u308b\u3068\u304d\u30e1\u30e2 - rdera\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["json","ruby"],"title":"ruby\u3067json\u3092\u51e6\u7406\u3059\u308b\u3068\u304d\u30e1\u30e2","published":"2011-04-15 16:35:14","description":"require 'json' open(filename,'r'){|fp| fp_json = JSON.parse(fp.read) } fp_json.each_key do |key| p fp_json[key][hoge] end \u3068\u304b\u3002filename\u306e\u5bb9\u91cf\u304c\u5927\u304d\u3044\u5834\u5408\u3001 JSON.parse(fp.read)\u3063\u3066\u3001\u4e00\u6c17\u306b\u8aad\u307f\u8fbc\u3093\u3067\u308b\u3093\u3060\u3051\u3069\u3002 \u3053\u308c\u3063\u3066\u3001\u554f\u984c\u306f\u306a\u3044\u306e\u304b\u306a\u3041\u3002 \u3061\u306a\u307f\u306b\u30d5\u30a1\u30a4\u30eb\u306f\u3053\u3093\u306a\u306e\u3092\u51e6\u7406\u3057\u3066\u305f\u3002 { \"12345\" : { \"memo\" : \"\" }, \"67890\" : { \"memo\" : \"\" }, \"54321\" : { \"memo\" : \"\" },\u2026"}