Package: rrdtool Version: 1.4.8-1.1+b1 Severity: normal Dear Maintainer,
Although Bug#686825 has been closed, there is still
invalid JSON output from rrdtool xport. For example
root@debuild-jessie-x64:~# rrdtool xport --json
DEF:temperature=/tmp/temperature.rrd:value:AVERAGE XPORT:temperature:Indoor
{ about: 'RRDtool xport JSON output',
meta: {
"start": 1412010000,
"step": 500,
"end": 1412010000,
"legend": [
'Indoor'
]
},
"data": [
[ 2.0318875000e+01 ],
[ 2.0373875000e+01 ],
[... snipp ...]
The tags "about", "meta" should be enclosed in double quotes.
The data enclosed in single quotes should also be enclosed in double
quotes instead as the JSON language specification only allows double
quotes for strings:
"A string is a sequence of zero or more Unicode characters, wrapped in double
quotes"
(http://json.org/)
So the output should be:
{ "about": "RRDtool xport JSON output",
"meta": {
"start": 1412010500,
"step": 500,
"end": 1412010500,
"legend": [
"Indoor"
]
},
"data": [
[ 2.0373875000e+01 ],
This has been fixed in the new upstream version 1.4.9
So long,
Andreas Maus.
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages rrdtool depends on:
ii libc6 2.19-11
ii libdbi1 0.9.0-3
ii librrd4 1.4.8-1.1+b1
rrdtool recommends no packages.
Versions of packages rrdtool suggests:
pn librrds-perl <none>
-- no debconf information
--
"Things that try to look like things often do
look more like things than things. Well-known fact."
Granny Weatherwax - "Wyrd sisters"
signature.asc
Description: Digital signature

