{"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnekomaho.hatenablog.jp%2Fentry%2F2017%2F01%2F26%2F011200\" title=\" JSON.parse\u3068JSON.load\u306e\u9055\u3044 - \u732b\u306e\u9b54\u6cd5\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Ruby"],"title":" JSON.parse\u3068JSON.load\u306e\u9055\u3044","blog_url":"https://nekomaho.hatenablog.jp/","version":"1.0","type":"rich","blog_title":"\u732b\u306e\u9b54\u6cd5","width":"100%","description":"JSON.parse\u3068JSON.load\u306e\u5dee\u304c\u4f55\u306a\u306e\u304b\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u8abf\u3079\u3066\u307f\u305f\u3002 \u203b\u4e0b\u8a18\u306e\u53c2\u8003\u306eStackOverflow\u306e\u5185\u5bb9\u304c\u305d\u306e\u7b54\u3048\u3060\u304c\u3001\u88cf\u3092\u53d6\u308a\u305f\u304b\u3063\u305f\u3002 require 'json' File.open(\"hoge.json\") do |f| JSON.parse(f.read) == File.open(\"hoge.json\"){ |f| JSON.load(f) } ? p(\"same\") : p(\"diffrent\") end => \"same\" \u203bFile.open\u30922\u56de\u547c\u3093\u3067\u3044\u308b\u306e\u306f\u3069\u3052\u3093\u304b\u305b\u3093\u3068\u3044\u304b\u3093\u3002 Ruby\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8:parse\u3001:load\u3092\u898b\u308b\u3068\u3001pa\u2026","author_name":"nekomaho","published":"2017-01-26 01:12:00","provider_name":"Hatena Blog","image_url":null,"height":"190","author_url":"https://blog.hatena.ne.jp/nekomaho/","url":"https://nekomaho.hatenablog.jp/entry/2017/01/26/011200"}