<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yohhoy</author_name>
  <author_url>https://blog.hatena.ne.jp/yohhoy/</author_url>
  <blog_title>yohhoyの日記</blog_title>
  <blog_url>https://yohhoy.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>PythonでコンパクトなJSON文字列（空白文字を最小限に抑える）に変換する。jq --compact-output コマンド出力相当。 import json data = { &quot;id&quot;: 42, &quot;name&quot;: &quot;Foo Bar&quot;, &quot;list&quot;: [&quot;A&quot;, &quot;B&quot;, &quot;C&quot;]} json.dumps(data, separators=(',', ':')) # 最小表現 json.dumps(data) # (標準) json.dumps(data, indent=4) # 可読性重視 出力： {&quot;name&quot;:&quot;Foo Bar&quot;,&quot;list&quot;:[&quot;A&quot;,&quot;B&quot;,&quot;C&quot;],&quot;id&quot;:4…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20150501%2Fp1&quot; title=&quot;コンパクトなJSON表現へ変換 - yohhoyの日記&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>2015-05-01 00:00:00</published>
  <title>コンパクトなJSON表現へ変換</title>
  <type>rich</type>
  <url>https://yohhoy.hatenadiary.jp/entry/20150501/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
