<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nekomaho</author_name>
  <author_url>https://blog.hatena.ne.jp/nekomaho/</author_url>
  <blog_title>猫の魔法</blog_title>
  <blog_url>https://nekomaho.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>JSON.parseとJSON.loadの差が何なのか分からなかったので調べてみた。 ※下記の参考のStackOverflowの内容がその答えだが、裏を取りたかった。 require 'json' File.open(&quot;hoge.json&quot;) do |f| JSON.parse(f.read) == File.open(&quot;hoge.json&quot;){ |f| JSON.load(f) } ? p(&quot;same&quot;) : p(&quot;diffrent&quot;) end =&gt; &quot;same&quot; ※File.openを2回呼んでいるのはどげんかせんといかん。 Rubyの公式ドキュメント:parse、:loadを見ると、pa…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnekomaho.hatenablog.jp%2Fentry%2F2017%2F01%2F26%2F011200&quot; title=&quot; JSON.parseとJSON.loadの違い - 猫の魔法&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-01-26 01:12:00</published>
  <title> JSON.parseとJSON.loadの違い</title>
  <type>rich</type>
  <url>https://nekomaho.hatenablog.jp/entry/2017/01/26/011200</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
