阅读背景:

如何在Java中将自定义类的ArrayList转换为JsonArray ?

来源:互联网 

I am trying to convert ArrayList of custom class to JsonArray. Below is my code. It executes fine but some JsonArray elements come as zeros even though they are numbers in the ArrayList. I have tried to print them out. Like customerOne age in the ArrayList is 35 but it is 0 in the JsonArray. What could be wrong?I am trying to convert ArrayList of custom clas




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

分享到: