Verify JSON Data
Chris Angelico
rosuav at gmail.com
Mon May 26 12:02:00 EDT 2014
On Tue, May 27, 2014 at 1:55 AM, Roy Smith <roy at panix.com> wrote:
> In article <mailman.10347.1401119046.18130.python-list at python.org>,
> Gene Heskett <gheskett at shentel.net> wrote:
>
>> > $ echo '[1, 2, 3]' | json_xs -t null 2>/dev/null; echo $?
>> 0
>
>> > $ echo '[1; 2, 3]' | json_xs -t null 2>/dev/null; echo $?
>> 255
>
>
>> gene at coyote:~$ echo '[1, 2, 3]' | json_xs -t null 2>/dev/null; echo $?
>> 127
>> gene at coyote:~$ echo '[1; 2, 3]' | json_xs -t null 2>/dev/null; echo $?
>> 127
>
> I don't see what the problem is. On average, we got the same result :-)
Ahh but if you were using Python 3, those averages would be 127.5 each.
ChrisA
More information about the Python-list
mailing list