且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Json中缺少空值列

更新时间:2021-11-29 23:08:30

使用所有列创建表并填充XML和JSON源中的值。这样你就不依赖数据载体方法进行表格布局了。



或者,不要使用提供的序列化程序,而是编写自己的会返回所有字段(但是你必须写一些带有一些值的列名(即NULL),并且在反序列化时,也要解析它。)
Create your table with all the columns and fill the values from your XML and JSON sources. That way you don't depend on data carrier method for your table layout.

Alternatively, instead of using supplied serializer, write your own that will return all the fields (but you will have to write column names with some value (i.e. NULL) and when deserializing, parse that too).