<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hyperdb</author_name>
  <author_url>https://blog.hatena.ne.jp/hyperdb/</author_url>
  <blog_title>黄昏の迷宮</blog_title>
  <blog_url>https://blog.hyperdb.jp/</blog_url>
  <categories>
  </categories>
  <description>先日作ったxlsx2jsonを使って、まずは試しに都道府県の一覧をExcelのワークシートからJSONに変換してみました。 [ { &quot;code&quot;: &quot;01&quot;, &quot;name&quot;: &quot;北海道&quot; }, { &quot;code&quot;: &quot;02&quot;, &quot;name&quot;: &quot;青森県&quot; }, ] これをどうやってSvelteKitで使うかというと、まずはFetchしてからコンポーネントに渡す必要があります。以下のように書きます。 データを配置する まず、src/data/shared/pref.jsonに上記のJSONを配置します。 データを読み込む 型定義して、データを読み込むためのコードを書きます。以下のようにsrc/li…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hyperdb.jp%2Fentry%2F2025%2F06%2F19%2F184948&quot; title=&quot;JSONから共通コンポーネントを作る - 黄昏の迷宮&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/h/hyperdb/20250619/20250619185111.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-06-19 18:49:48</published>
  <title>JSONから共通コンポーネントを作る</title>
  <type>rich</type>
  <url>https://blog.hyperdb.jp/entry/2025/06/19/184948</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
