<?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>JSON</anon>
    <anon>JavaScript</anon>
  </categories>
  <description>いつも気をつけているのだが、割とうっかりやらかすので割と戒めのためにメモ。 JSONは元々JavaScriptの記法を元にしたフォーマットだが、実はJavaScript上では許されているがJSONとしては許されていないものがある。 その代表例の一つが末尾のカンマだ。 例えば次はJavaScriptのオブジェクトの例だ。 例: sample1.js let data = {&quot;key&quot;: &quot;value&quot;,}; ここで&quot;value&quot;の後ろに , が付いているのがお分かりいただけるだろうか。 これはJavaScriptの記法上OKとなる。 ただし以下の場合は例外が発生する。 例: sample2.js…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fplugout.hateblo.jp%2Fentry%2F2024%2F02%2F01%2F000000&quot; title=&quot;JSONの末尾のカンマにご用心 - 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/20190202/20190202115021.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-02-01 00:00:00</published>
  <title>JSONの末尾のカンマにご用心</title>
  <type>rich</type>
  <url>https://plugout.hateblo.jp/entry/2024/02/01/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
