Date: Tue, 10 Feb 2015 20:33:50 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 197499] wc libxo emits invalid JSON when used on multiple files Message-ID: <bug-197499-8-8DUv6t8UDd@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-197499-8@https.bugs.freebsd.org/bugzilla/> References: <bug-197499-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197499 --- Comment #5 from Marcel Moolenaar <marcel@FreeBSD.org> --- I don't seem to be able to reproduce your problem: fbsdvm64% wc --libxo json,pretty /etc/defaults/* { "wc": { "file": [ { "lines": 111, "words": 644, "characters": 3999, "filename": "/etc/defaults/bluetooth.device.conf" }, { "lines": 87, "words": 403, "characters": 2439, "filename": "/etc/defaults/devfs.rules" }, { "lines": 381, "words": 1221, "characters": 11568, "filename": "/etc/defaults/periodic.conf" }, { "lines": 699, "words": 4593, "characters": 36522, "filename": "/etc/defaults/rc.conf" } ], "total": { "lines": 1278, "words": 6861, "characters": 54528, "filename": "total" } } } fbsdvm64% "file" is a proper array and "total" falls outside of the array. jsonlint.com flags this as valid JSON. I'm running sources as of today. Do you have older sources or modified sources? -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197499-8-8DUv6t8UDd>