Skip to content

Commit

Permalink
Merge pull request #40 from RobertLarsen/master
Browse files Browse the repository at this point in the history
Fixed JSON format issue
  • Loading branch information
bitwiseshiftleft committed Nov 25, 2011
2 parents 6ba2936 + 68c8f58 commit b59fb82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/convenience.js
Expand Up @@ -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]) {
Expand Down

0 comments on commit b59fb82

Please sign in to comment.