diff options
-rw-r--r-- | json-parser.c | 4 | ||||
-rw-r--r-- | qjson.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/json-parser.c b/json-parser.c index b55d76373e..83212bc65b 100644 --- a/json-parser.c +++ b/json-parser.c @@ -206,6 +206,10 @@ static QString *qstring_from_escaped_str(JSONParserContext *ctxt, QObject *token qstring_append(str, "\b"); ptr++; break; + case 'f': + qstring_append(str, "\f"); + ptr++; + break; case 'n': qstring_append(str, "\n"); ptr++; @@ -158,6 +158,9 @@ static void to_json(const QObject *obj, QString *str) case '\b': qstring_append(str, "\\b"); break; + case '\f': + qstring_append(str, "\\f"); + break; case '\n': qstring_append(str, "\\n"); break; |