Skip to content

Commit

Permalink
Fixed escape issue generating invalid JSON.
Browse files Browse the repository at this point in the history
  • Loading branch information
allinurl committed Oct 20, 2016
1 parent 626da93 commit e3309f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/json.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,19 +283,19 @@ escape_json_output (GJSON * json, char *s)
pjson (json, "\\\\");
break;
case '\b':
pjson (json, "\\\b");
pjson (json, "\\b");
break;
case '\f':
pjson (json, "\\\f");
pjson (json, "\\f");
break;
case '\n':
pjson (json, "\\\n");
pjson (json, "\\n");
break;
case '\r':
pjson (json, "\\\r");
pjson (json, "\\r");
break;
case '\t':
pjson (json, "\\\t");
pjson (json, "\\t");
break;
case '/':
pjson (json, "\\/");
Expand Down

0 comments on commit e3309f4

Please sign in to comment.