<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>katsube</author_name>
  <author_url>https://blog.hatena.ne.jp/katsube/</author_url>
  <blog_title>ねこの足跡R</blog_title>
  <blog_url>https://blog.katsubemakito.net/</blog_url>
  <categories>
    <anon>Node.js</anon>
    <anon>JavaScript</anon>
    <anon>JSON</anon>
    <anon>pretty</anon>
    <anon>整形</anon>
    <anon>JSON.stringify</anon>
  </categories>
  <description>小ネタです。 結論から言うと、JSON.stringify()の第2引数にnull、第3引数に数値を指定することで人間がパッと見て分かるよう整形した文字列が返されます。 const data = [ { &quot;season&quot;: &quot;202004&quot;, &quot;title&quot;: &quot;乙女ゲームの破滅フラグしかない悪役令嬢に転生してしまった…&quot;, &quot;company&quot;: &quot;SILVER LINK.&quot; }, ] // 機械に優しい const str1 = JSON.stringify(data); console.log(str1) // 人間に優しい const str2 = JSON.stringify(data…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.katsubemakito.net%2Fnodejs%2Fjson-pretty&quot; title=&quot; [Node.js] JSONをキレイに整形して出力する - ねこの足跡R&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>2020-05-08 17:45:21</published>
  <title> [Node.js] JSONをキレイに整形して出力する</title>
  <type>rich</type>
  <url>https://blog.katsubemakito.net/nodejs/json-pretty</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
