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';
|
ret = isFinite(value) ? String(value) : 'null';
|
||||||
} else if (type == 'object') {
|
} else if (type == 'object') {
|
||||||
ret = ['{', '}'].join(
|
ret = ['{', '}'].join(
|
||||||
value.map(function(v, k) {
|
Object.keys(value).map(function(k) {
|
||||||
return quote(k) + ': ' + stringify(v);
|
return quote(k) + ': ' + stringify(value[k]);
|
||||||
}).join(',')
|
}).join(',')
|
||||||
);
|
);
|
||||||
} else if (type == 'string') {
|
} else if (type == 'string') {
|
||||||
|
|
Loading…
Reference in a new issue