//删除为空的json
var y
for (var x in data) {
y = data[x]
if (y instanceof Object) y = trim_nulls(y)
if (
y === 'null' ||
y === null ||
y === '' ||
typeof y === 'undefined' ||
(y instanceof Object && Object.keys(y).length == 0)
) {
delete data[x]
}
}