<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mi_kattun</author_name>
  <author_url>https://blog.hatena.ne.jp/mi_kattun/</author_url>
  <blog_title>orangain flavor</blog_title>
  <blog_url>https://orangain.hatenablog.com/</blog_url>
  <categories>
    <anon>Kotlin</anon>
  </categories>
  <description>APIなどのテストで、JSONが意図した形式・値になっているかチェックしたいことがあります。 文字列として比較してチェックする場合、JSONに含まれる空白がちょっと変わっただけでエラーになりますし、チェック対象のJSON文字列が整形されていないとテストの可読性が落ちます。さらに自動生成されるIDや更新日時など、動的な値が含まれていると使えません*1。 JSON文字列をパースしてから比較する場合、Jacksonの ObjectMapper#readValue() のような気の利いたデシリアライズ機能を使うと、本当にJSON文字列として意図した形になっているか自信が持てません。一方で、 Objec…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Forangain.hatenablog.com%2Fentry%2Fjson-fuzzy-match&quot; title=&quot;動的な値を含むJSON文字列をテストするための json-fuzzy-match を作った - orangain flavor&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-04-14 21:18:37</published>
  <title>動的な値を含むJSON文字列をテストするための json-fuzzy-match を作った</title>
  <type>rich</type>
  <url>https://orangain.hatenablog.com/entry/json-fuzzy-match</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
