GSON Serialize boolean to 0 or 1

后端 未结 2 517
忘掉有多难
忘掉有多难 2021-02-05 07:46

All,

I\'m trying to do the following:

public class SomClass
{
    public boolean x;
    public int y;
    public String z;
}       

SomClass s = new Som         


        
2条回答
提交回复
热议问题