summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f42750e)
raw | patch | inline | side by side (parent: f42750e)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 22 Feb 2012 22:11:18 +0000 (22:11 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 22 Feb 2012 22:11:18 +0000 (22:11 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2276 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_tool.c | patch | blob | history |
diff --git a/src/rrd_tool.c b/src/rrd_tool.c
index 187b3e3ec6dfdd9fd70615893d93019dfc2322b7..5a37016773c1321d36e13c32192e18105d0fc52a 100644 (file)
--- a/src/rrd_tool.c
+++ b/src/rrd_tool.c
#define pXJV(indent,fmt,tag,value) \
if (json) { \
- printf(indent "%s: " fmt ",\n",tag,value); \
+ printf(indent "\"%s\": " fmt ",\n",tag,value); \
} else { \
printf(indent "<%s>" fmt "</%s>\n",tag,value,tag); \
}
}
if (json){
- printf(" %s: [\n", LEGEND_TAG);
+ printf(" \"%s\": [\n", LEGEND_TAG);
}
else {
printf(" <%s>\n", LEGEND_TAG);
}
if (json){
- printf(" %s: [\n",DATA_TAG);
+ printf(" \"%s\": [\n",DATA_TAG);
} else {
printf(" <%s>\n", DATA_TAG);
}