[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] Tests: About adding a JSON validator
From: |
Bernd Zeimetz |
Subject: |
Re: [gpsd-dev] Tests: About adding a JSON validator |
Date: |
Tue, 05 Jun 2012 23:46:47 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 |
Hi,
> While working on having the AIS code better tested, I wrote a simple python
> script that try to parse the JSON dump of the AIVDM mesages, and I discovered
> two syntax errors in it (2 non quoted string values).
what did you use to check for syntax errors? Having something like jsonlint from
python-demjson to validate generated json automatically would be a good thing to
have in the regression tests.
>
> I then did the same with all the JSON files in test/ but i didn't discover
> more
> problems.
>
> Do you thinks, it would be good to have this kind of thing added to "scons
> check"?
Definitely.
Cheers,
Bernd
--
Bernd Zeimetz Debian GNU/Linux Developer
http://bzed.de http://www.debian.org
GPG Fingerprint: ECA1 E3F2 8E11 2432 D485 DD95 EB36 171A 6FF9 435F