Commit ca6ff4f5 authored by L2m2's avatar L2m2

增加序列化JSON保留undefined的例子

parent 7270283c
var obj = {
a: 1,
b: null,
c: undefined
};
print(JSON.stringify(obj, function(k, v){
return typeof v === 'undefined' ? null : v;
}));
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment