diff --git a/src/rrd_tool.c b/src/rrd_tool.c
index e481fa352bfb42bcd2218c272a4089543285087f..4dd4cae1f1c6524cbe6b56a8cf74e7a1681ed96b 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);
}