Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #72076

Re: Verify JSON Data

References <e26d3f14-ac97-4abd-bdfc-699d9ed2175c@googlegroups.com> <roy-CA8FC6.11195326052014@news.panix.com> <mailman.10347.1401119046.18130.python-list@python.org> <roy-89A928.11552926052014@news.panix.com>
Date 2014-05-27 02:02 +1000
Subject Re: Verify JSON Data
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.10350.1401120128.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, May 27, 2014 at 1:55 AM, Roy Smith <roy@panix.com> wrote:
> In article <mailman.10347.1401119046.18130.python-list@python.org>,
>  Gene Heskett <gheskett@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@coyote:~$ echo '[1, 2, 3]' | json_xs -t null 2>/dev/null; echo $?
>> 127
>> gene@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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Verify JSON Data gaurangnshah@gmail.com - 2014-05-26 07:26 -0700
  Re: Verify JSON Data Roy Smith <roy@panix.com> - 2014-05-26 11:19 -0400
    Re: Verify JSON Data Gene Heskett <gheskett@shentel.net> - 2014-05-26 11:37 -0400
      Re: Verify JSON Data Roy Smith <roy@panix.com> - 2014-05-26 11:55 -0400
        Re: Verify JSON Data Chris Angelico <rosuav@gmail.com> - 2014-05-27 02:02 +1000
        Re: Verify JSON Data Gene Heskett <gheskett@shentel.net> - 2014-05-26 12:43 -0400
    Re: Verify JSON Data Chris Angelico <rosuav@gmail.com> - 2014-05-27 01:58 +1000
    Re: Verify JSON Data Chris Angelico <rosuav@gmail.com> - 2014-05-27 02:00 +1000
  Re: Verify JSON Data Burak Arslan <burak.arslan@arskom.com.tr> - 2014-05-26 17:28 +0200
  Re: Verify JSON Data Denis McMahon <denismfmcmahon@gmail.com> - 2014-05-26 15:43 +0000
  Re: Verify JSON Data Gene Heskett <gheskett@shentel.net> - 2014-05-26 12:44 -0400
  Re: Verify JSON Data Grant Edwards <invalid@invalid.invalid> - 2014-05-26 18:35 +0000
    Re: Verify JSON Data Rustom Mody <rustompmody@gmail.com> - 2014-05-26 21:28 -0700

csiph-web