var cache = [];
var aa = JSON.stringify(rowData, function(key, value) {
if (typeof value === 'object' && value !== null) {
if (cache.indexOf(value) !== -1) {
return;
}
cache.push(value);
}
return value;
});
cache = null;
相关文章
- 02-21解决TypeError: Converting circular structure to JSON
- 02-21json文件修改-解决:TypeError: Object of type Series is not JSON serializable
- 02-21成功解决TypeError: Object of type 'ndarray' is not JSON serializable
- 02-21TypeError: Object of type datetime is not JSON serializable问题解决
- 02-21TypeError: Object of type 'type' is not JSON serializable解决方法
- 02-21WEEX 报错 TypeError: Converting circular structor to JSON 的解决方法
- 02-21解决TypeError: Object of type 'ObjectId' is not JSON serializable