package Ġcom . jay new st rom . json Del ight . runtime . internal Ċ Ċ import Ġcom . fasterxml . jackson . core . Json Generator Ċ import Ġcom . fasterxml . jackson . core . Json Parser Ċ import Ġcom . jay new st rom . json Del ight . runtime . Json Deserializer Ċ import Ġcom . jay new st rom . json Del ight . runtime . Json Deserializer Factory Ċ import Ġcom . jay new st rom . json Del ight . runtime . Json Regist r able Ċ import Ġcom . jay new st rom . json Del ight . runtime . Json Serializer Ċ import Ġcom . jay new st rom . json Del ight . runtime . Json Serializer Factory Ċ Ċ import Ġjava . io . IOException Ċ Ċ object ĠByte Json Adapter Ġ: ĠJsonSerializer < Byte >, ĠJson Deserializer < Byte >, ĠJson Regist r able Ġ{ ĊĠĠĠ Ġ@ Throws ( IOException :: class ) ĊĠĠĠ Ġoverride Ġfun Ġserialize ( value : ĠByte , Ġj g : ĠJson Generator , Ġserializer Factory : ĠJsonSerializer Factory ) Ġ= Ġj g . write Number ( value . to Short ()) ĊĊĠĠĠ Ġ@ Throws ( IOException :: class ) ĊĠĠĠ Ġoverride Ġfun Ġdeserialize ( jp : ĠJson Parser , Ġde serializer Factory : ĠJson Deserializer Factory ): ĠByte Ġ= Ġjp . byte Value ĊĊĠĠĠ Ġoverride Ġfun Ġmodel Class (): ĠClass < *> Ġ= ĠByte :: class . java Ċ } Ċ