阅读背景:

用Scala和json4s反序列化java对象

来源:互联网 

I have HTTP client written in Scala that uses json4s/jackson to serialize and deserialize HTTP payloads. For now I was using only Scala case classes as model and everything was working fine, but now I have to communicate with third party service. They provided me with their own model but its written in Java, so now I need to deserialize jsons also to Java classes. It seams to work fine with simple classes but when class contains collections like Lists or Maps json4s has problems and sets all such fields to I have HTTP client written in Scala that uses j




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: