<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>PlugOut</author_name>
  <author_url>https://blog.hatena.ne.jp/PlugOut/</author_url>
  <blog_title>Unknown Region</blog_title>
  <blog_url>https://plugout.hateblo.jp/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>自分の備忘録がてら。 [JSON.stringify()]はObjectからJSON文字列を生成する関数だが、結果で一部正確に反映されないものが存在する。 そのうちの一つがInfinityで∞(無限)という意味だ。 JSON文字列上、∞は表現できないためにnullになってしまう。 (尚、InfinityにはNumber.POSITIVE_INFINITYとNumber.NEGATIVE_INFINITYが存在し、単にInfinityとした場合はNumber.POSITIVE_INFINITYと同義になる) plugout.hateblo.jp 例: コンソールで実行1 &gt; JSON.strin…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fplugout.hateblo.jp%2Fentry%2F2020%2F12%2F05%2F090713&quot; title=&quot;【JavaScript】[JSON.stringify()]にInfinityを与えるとnullになる - Unknown Region&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>https://cdn-ak.f.st-hatena.com/images/fotolife/P/PlugOut/20180713/20180713184625.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-12-05 09:07:13</published>
  <title>【JavaScript】[JSON.stringify()]にInfinityを与えるとnullになる</title>
  <type>rich</type>
  <url>https://plugout.hateblo.jp/entry/2020/12/05/090713</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
