Merge branch 'develop' of https://github.com/clicon/clixon into develop
This commit is contained in:
commit
e9b61d4ed7
2 changed files with 7 additions and 0 deletions
|
|
@ -216,6 +216,9 @@ json_str_escape(char *str)
|
|||
for (i=0;i<strlen(str);i++)
|
||||
switch (str[i]){
|
||||
case '\n':
|
||||
snew[j++]='\\';
|
||||
snew[j++]='n';
|
||||
break;
|
||||
case '\"':
|
||||
case '\\':
|
||||
snew[j++]='\\';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue