<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>steavevaivai</author_name>
  <author_url>https://blog.hatena.ne.jp/steavevaivai/</author_url>
  <blog_title>teruuuのブログ</blog_title>
  <blog_url>https://steavevaivai.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>以前の作業でscalaでJSONをパースできるようになりましたが、そのままの抽象構文木(AST)の状態だと扱いづらいので変換する方法について調べてみます。 調べたところspray-json-shapelessというものがあり、これが丁度やりたいことに近いかと思います。 spray-json-shapelessでは以下のようにパース後の結果に対してconvertTo[T]を呼び出すことで任意のオブジェクトに変換できているようです。 package example object TrySprayShapeless extends App { import spray.json._ import f…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsteavevaivai.hatenablog.com%2Fentry%2F2019%2F09%2F25%2F185857&quot; title=&quot;scalaでjsonをパース後のASTを扱いやすいように型変換する方法について調べてみた - teruuuのブログ&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>2019-09-25 18:58:57</published>
  <title>scalaでjsonをパース後のASTを扱いやすいように型変換する方法について調べてみた</title>
  <type>rich</type>
  <url>https://steavevaivai.hatenablog.com/entry/2019/09/25/185857</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
