Added double quotes around keys in JSON encoded strings to conform with JSON format.
This commit is contained in:
parent
3fddb9e668
commit
502d313351
@ -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 New Issue
Block a user