aboutsummaryrefslogtreecommitdiff
path: root/json-parser.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2010-05-19 17:06:15 -0300
committerLuiz Capitulino <lcapitulino@redhat.com>2010-06-11 15:25:14 -0300
commitbd0326950f99faa8e50cf52499dd1af42829aa93 (patch)
treef014526ae4be3096c3ae5f415931459bfff90c70 /json-parser.c
parent1041ba7a14260b490f3062f428b014b415a23f38 (diff)
qjson: Handle "\f"
It's valid JSON and should be handled. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'json-parser.c')
-rw-r--r--json-parser.c4
1 files changed, 4 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++;