<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fnyablog</author_name>
  <author_url>https://blog.hatena.ne.jp/fnyablog/</author_url>
  <blog_title>あるSEのつぶやき・改</blog_title>
  <blog_url>https://www.aruse.net/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>React</anon>
  </categories>
  <description>JSON は便利なのですが、JSON をクエリー文字列のようにkey1=value1&amp;key2=value2といったように&amp;つなぎの文字列に変換する必要が出てきました。 調べてみたところ、以下のように簡単に変換することができました。 const data = { key1: 'value1', key2: 'value2', key3: 'value3', }; const joinString = Object.keys(data).map((key) =&gt; { return key + '=' + data[key]; }).join('&amp;'); React でのサンプルは以下のようになり…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.aruse.net%2Fentry%2F2019%2F03%2F30%2F193751&quot; title=&quot;JSONを&amp;amp;つなぎのクエリー文字列形式に簡単に変換する方法 - あるSEのつぶやき・改&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/f/fnyablog/20190330/20190330193706.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-03-30 19:37:51</published>
  <title>JSONを&amp;つなぎのクエリー文字列形式に簡単に変換する方法</title>
  <type>rich</type>
  <url>https://www.aruse.net/entry/2019/03/30/193751</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
