projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
json requires keys to be proper strings and thus quoted ...
[rrdtool.git]
/
src
/
rrd_tool.c
diff --git
a/src/rrd_tool.c
b/src/rrd_tool.c
index
e481fa3
..
4dd4cae
100644
(file)
--- a/
src/rrd_tool.c
+++ b/
src/rrd_tool.c
@@
-743,7
+743,7
@@
int HandleInputLine(
#define pXJV(indent,fmt,tag,value) \
if (json) { \
#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); \
}
} else { \
printf(indent "<%s>" fmt "</%s>\n",tag,value,tag); \
}
@@
-757,7
+757,7
@@
int HandleInputLine(
}
if (json){
}
if (json){
- printf("
%s
: [\n", LEGEND_TAG);
+ printf("
\"%s\"
: [\n", LEGEND_TAG);
}
else {
printf(" <%s>\n", LEGEND_TAG);
}
else {
printf(" <%s>\n", LEGEND_TAG);
@@
-788,7
+788,7
@@
int HandleInputLine(
}
if (json){
}
if (json){
- printf("
%s
: [\n",DATA_TAG);
+ printf("
\"%s\"
: [\n",DATA_TAG);
} else {
printf(" <%s>\n", DATA_TAG);
}
} else {
printf(" <%s>\n", DATA_TAG);
}