<p>$B>.NS(B(koichik)$B$5$s(B</p>
<p>$B$$$D$b$"$j$,$H$&$4$6$$$^$9!#(B<br>
$BBgDM$G$9!#(B</p>
<p>$B0J2<$N$h$&$K<h$j5^$.$465<($$$?$@$$$?J}K!$r;n$7$F$_$?$H$3$m!"4|BT$7$?5sF0$rF@$i$l$^$7$?!#(B</p>
<p>$B!&(BEntity$B$K(BJSON$BMQ$N(BDto$B%U%#!<%k%I$r!"(BDB$B%+%i%`$H0lCW$9$kL?L>5,B'$GMQ0U!#(B</p>
<p>$B!&(BJSON$BMQ(BDTO$B$K(B<br>
$B!!!!(Bpublic static JsonDto valueOf(String)<br>
$B!!!!!!(Bdecode$B=hM}$r<BAu!#(B<br>
$B!!!!(Bpublic String value()<br>
$B!!!!!!(Bencode$B=hM}$r<BAu!#(B<br>
$B!!$N(B2$B$D$N%a%=%C%I$rDI2C!#(B</p>
<p>$B!&(BEntity$B$K(BJsonDto$B$N3F%U%#!<%k%I$rCf7Q$9$k$?$a$N(Bgetter/setter$B$r:n@.!#(B<br>
$B!!"(8F$S=P$785$,(BJSON$B$N%U%#!<%k%I$HDL>o%+%i%`$r0U<1$;$:$K07$($k$h$&$K$7$?$$0Y!#(B</p>
<p>$B%3!<%I$,Hs>o$K%7%s%W%k$K$J$j$^$7$?!*(B</p>
<p>$B$465<($$$?$@$-$"$j$,$H$&$4$6$$$^$7$?!#(B</p>
<p>&gt; $B>.NS(B (koichik) $B$G$9!%(B<br>
&gt;<br>
&gt; JsonDto $B$K0J2<$N%a%=%C%I$rDI2C$9$k$@$1$G(B<br>
&gt; $BBg>fIW$J$O$:$G$9!%(B<br>
&gt;<br>
&gt; public class JsonDto {<br>
&gt; &nbsp;...<br>
&gt; &nbsp;public static JsonDto valueOf(String s) {<br>
&gt; &nbsp; &nbsp;JsonDto dto = ...; //decode<br>
&gt; &nbsp; &nbsp;return dto;<br>
&gt; &nbsp;}<br>
&gt;<br>
&gt; &nbsp;public String value() {<br>
&gt; &nbsp; &nbsp;String s = ...; //encode<br>
&gt; &nbsp; &nbsp;return s;<br>
&gt; &nbsp;}<br>
&gt; }</p>