On Thu, Feb 26, 2015 at 5:08 PM, Holger Levsen <[email protected]> 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


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: 
https://lists.debian.org/cad77+grk3jxytz2jpxbznhso9-0ugrvutqnmh0p9me-swxo...@mail.gmail.com

Reply via email to