Bug#761859: security-tracker json deployed
On Thu, Feb 26, 2015 at 5:08 PM, Holger Levsen <holger@layer-acht.org> wrote:
> I haven't tested the output against a json validator yet... so feedback
> welcome and I do expect some more work to do...
I am seeing the same issues as Rapahel.
A poor man's checker if you are parseable in theory would be:
wget https://security-tracker.debian.org/tracker/data/json
perl -e 'use Data::Dumper; use JSON; open(JSON, json);
$data=from_json(do {local $/; <JSON>}, {relaxed => 1}); print Dumper
$data'
and to make sure it's actually valid:
perl -e 'use Data::Dumper; use JSON; open(JSON, json);
$data=from_json(do {local $/; <JSON>}); print Dumper $data'
FWIW, I agree that serializing should be done by a JSON library; that
way you don't have to care about the details.
Richard
Reply to: