<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>edgegram</author_name>
  <author_url>https://blog.hatena.ne.jp/edgegram/</author_url>
  <blog_title>edgegram</blog_title>
  <blog_url>https://edgegram.hatenablog.jp/</blog_url>
  <categories>
    <anon>JAX-RS</anon>
    <anon>Jersey</anon>
  </categories>
  <description>JSONをリクエストで投げてJersey(MOXy)でPOJOとして受ける際に、Integerのフィールドに空文字が来ると「0」に変換される。 0じゃなくてnullで受けたい、というように変換をカスタマイズした場合はXmlAdapterを継承したadapterを作る。 参考：JAXBのXmlAdapterを自作する - Programming Studio JerseyというかJAXBの仕様らしい。なのでアノテーションやクラスがXml・・・となってJSONで使うには違和感があるがちゃんと動作する。 marshal()：POJO =&gt; JSON(XML)の変換処理 unmarshal()：JSO…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fedgegram.hatenablog.jp%2Fentry%2F2016%2F01%2F27%2F114415&quot; title=&quot;Jersey(MOXy)でJSONバインドをカスタマイズする - edgegram&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>2016-01-27 11:44:15</published>
  <title>Jersey(MOXy)でJSONバインドをカスタマイズする</title>
  <type>rich</type>
  <url>https://edgegram.hatenablog.jp/entry/2016/01/27/114415</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
