json: fix backslash escape typo in jsonw_puts

Fixes: fcc16c22 ("provide common json output formatter")
Signed-off-by: Ivan Delalande <colona@arista.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Ivan Delalande 2019-07-17 18:15:31 -07:00 committed by Stephen Hemminger
parent d035cc1b4e
commit ed54f76484
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ static void jsonw_puts(json_writer_t *self, const char *str)
fputs("\\b", self->out);
break;
case '\\':
fputs("\\n", self->out);
fputs("\\\\", self->out);
break;
case '"':
fputs("\\\"", self->out);