fastjson can't convert guava table to jsonString

fslejnso  于 2022-11-13  发布在  其他
关注(0)|答案(1)|浏览(156)

For example:

Class Cost{
private in distance = 0;
}

Table<String,String,Cost> endTable = HashBasedTable.create();

Cost cost = new Cost();

    cost.setDistance(111);

    cost.setTime(111);

    endTable.put("1","2",cost);

JSON.toJSONString(endTable)

expert: {1:1:{xxxx}}
but is : {empty:false}

相关问题