diff options
author | Miloslav Trmač <mitr@redhat.com> | 2012-08-24 19:28:59 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-08-26 11:45:22 +0200 |
commit | 3fd617f1acb7f1a057edb415cec1b144d210da81 (patch) | |
tree | d37f2df2c3c5f9e3175314a1282f367c8890e235 /runtime | |
parent | 14875be702b0c90c098888cba689190cec031646 (diff) | |
download | rsyslog-3fd617f1acb7f1a057edb415cec1b144d210da81.tar.gz rsyslog-3fd617f1acb7f1a057edb415cec1b144d210da81.tar.xz rsyslog-3fd617f1acb7f1a057edb415cec1b144d210da81.zip |
INCOMPATIBLE: use :, not =, as separator for jsonf
JSON fields are "name":value, not "name"=value. Therefore change the
jsonf flag to use a colon.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/msg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/msg.c b/runtime/msg.c index da751dba..61c2f87b 100644 --- a/runtime/msg.c +++ b/runtime/msg.c @@ -2518,7 +2518,7 @@ jsonField(struct templateEntry *pTpe, uchar **ppRes, unsigned short *pbMustBeFre dst = es_newStr(buflen+es_strlen(pTpe->data.field.fieldName)+15); es_addChar(&dst, '"'); es_addStr(&dst, pTpe->data.field.fieldName); - es_addBufConstcstr(&dst, "\"=\""); + es_addBufConstcstr(&dst, "\":\""); CHKiRet(jsonAddVal(pSrc, buflen, &dst)); es_addChar(&dst, '"'); |