fix object stringify
This commit is contained in:
parent
0fc0e671e1
commit
61e05f4f86
1 changed files with 2 additions and 2 deletions
|
@ -185,8 +185,8 @@ Ox.fallback.JSON = (function() {
|
|||
ret = isFinite(value) ? String(value) : 'null';
|
||||
} else if (type == 'object') {
|
||||
ret = ['{', '}'].join(
|
||||
value.map(function(v, k) {
|
||||
return quote(k) + ': ' + stringify(v);
|
||||
Object.keys(value).map(function(k) {
|
||||
return quote(k) + ': ' + stringify(value[k]);
|
||||
}).join(',')
|
||||
);
|
||||
} else if (type == 'string') {
|
||||
|
|
Loading…
Reference in a new issue