Added double quotes around keys in JSON encoded strings to conform with JSON format.
This commit is contained in:
parent
3fddb9e668
commit
502d313351
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@
|
|||
if (!i.match(/^[a-z0-9]+$/i)) {
|
||||
throw new sjcl.exception.invalid("json encode: invalid property name");
|
||||
}
|
||||
out += comma + i + ':';
|
||||
out += comma + '"' + i + '"' + ':';
|
||||
comma = ',';
|
||||
|
||||
switch (typeof obj[i]) {
|
||||
|
|
Loading…
Reference in a new issue