{"categories":["\u6280\u8853"],"blog_title":"\u79c1\u304c\u6b4c\u5ddd\u3067\u3059","url":"https://blog.utgw.net/entry/2016/11/14/144209","version":"1.0","blog_url":"https://blog.utgw.net/","type":"rich","author_name":"utgwkk","published":"2016-11-14 14:42:09","image_url":null,"height":"190","description":"dig \u30e1\u30bd\u30c3\u30c9\u3068\u306f instance method Hash#dig (Ruby 2.6.0) \u305f\u3068\u3048\u3070\u5404\u7a2e API \u3092\u53e9\u3044\u3066\u8fd4\u3063\u3066\u304d\u305f JSON \u3092\u30d1\u30fc\u30b9\u3057\u305f\u5f8c\u306e\u8f9e\u66f8\u578b\u306e\u3088\u3046\u306a\u3001\u30c7\u30fc\u30bf\u304c\u3044\u304f\u3089\u3067\u3082\u30cd\u30b9\u30c8\u3057\u3066\u3042\u308b\u3088\u3046\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u304c\u3042\u308b\u3068\u304d\u3001\u666e\u901a\u306a\u3089 obj['path']['to']['destination'][2] \u3068\u304b obj.path.to.destination[2] \u306e\u3088\u3046\u306b\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002 \u3053\u306e dig \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u3068\u3001\u5148\u8ff0\u3057\u305f\u3069\u3061\u3089\u306e\u5834\u5408\u3067\u3082 dig(obj, 'path', 'to', 'destination', 2) \u306e\u3088\u3046\u306a\u5f62\u5f0f\u3067\u8981\u7d20\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u2026","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.utgw.net%2Fentry%2F2016%2F11%2F14%2F144209\" title=\"Ruby \u306e dig \u30e1\u30bd\u30c3\u30c9\u304c\u4fbf\u5229\u306a\u306e\u3067 Python \u3067\u5b9f\u88c5\u3057\u305f - \u79c1\u304c\u6b4c\u5ddd\u3067\u3059\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","title":"Ruby \u306e dig \u30e1\u30bd\u30c3\u30c9\u304c\u4fbf\u5229\u306a\u306e\u3067 Python \u3067\u5b9f\u88c5\u3057\u305f","author_url":"https://blog.hatena.ne.jp/utgwkk/","width":"100%"}