<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akishin999</author_name>
  <author_url>https://blog.hatena.ne.jp/akishin999/</author_url>
  <blog_title>akishin999の日記</blog_title>
  <blog_url>https://akishin.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>to_json で出力される JSON 文字列の形式をカスタマイズする方法を調べてみました。 Ruby 2.0.0p247 で確認しています。まずは普通に to_json してみるとこんな感じ。 require 'json' t = Time.local(1978, 5, 31, 19, 30, 40, 205000) h = {id: 100, name: &quot;example&quot;, created_at: t} puts h.to_json #=&gt; {&quot;id&quot;:100,&quot;name&quot;:&quot;example&quot;,&quot;created_at&quot;:&quot;1978-05-31 19:30:40 +0900&quot;} # JSO…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakishin.hatenablog.jp%2Fentry%2F20130709%2F1373322082&quot; title=&quot; 出力される JSON の形式をカスタマイズする - akishin999の日記&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>2013-07-09 07:21:22</published>
  <title> 出力される JSON の形式をカスタマイズする</title>
  <type>rich</type>
  <url>https://akishin.hatenablog.jp/entry/20130709/1373322082</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
