Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.034 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; ';-)': 0.03; 'installed.': 0.07; 'json': 0.07; 'received:localnet': 0.09; '127': 0.16; 'empty.': 0.16; 'grounds': 0.16; 'patches': 0.16; 'soap,': 0.16; 'wrote:': 0.18; 'result.': 0.19; 'cheers,': 0.24; 'source': 0.25; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'that.': 0.31; 'checking': 0.33; 'url:non-standard http port': 0.33; 'core': 0.34; "i'd": 0.34; 'received:209.85': 0.35; 'monday': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'received:209': 0.37; 'system,': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'tell': 0.60; 'numbers': 0.61; 'back': 0.62; 'header:Message-Id:1': 0.63; 'charset:windows-1256': 0.64; 'mar': 0.68; 'received:204': 0.75; 'old,': 0.85; 'boxes': 0.91 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=i91ddfYGa9LhndRfFmDbzMCS5H1TfWuwYcRB2h+0nis=; b=R1U05QDJUOMJwdoCmuISEe6NYt/OS0mDr16wlvVPtdFcxpE8IvpVjKN1apoCEO3REl qi9tMk7UGaI/X0HsKpEDhFQhZy1V6xbI54rnriRkTk4k4AqP27zegRShRzzflISbtFG3 zsKLKcCcUl7qQVDGzFkFMt4hF3YUlB9y3ltAr9STrKR2h+gwqHMy+o1BhsnEzBfvnVBs U0Oi95x/6YG7zlVYExv5f2IEqobAxRO7qVdAqeIX2adgF8A3GmF9k8u2+e6Y0TDngQKT +NrprDoyHRUg/MmiicivMHnzq/dQUpx6xAAVcRiUYgfGOSwKkyMjpag8mV0zf8/zNHuM zbBA== X-Gm-Message-State: ALoCoQmiz8ptb/9czifhCU6L48UeRcxHEkRUUIHgJ7+aDyLFCHXJ4yaVwBcX+4E3fvx4rEMdMkxI X-Received: by 10.229.57.129 with SMTP id c1mr34200854qch.7.1401122693507; Mon, 26 May 2014 09:44:53 -0700 (PDT) From: Gene Heskett X-Google-Original-From: Gene Heskett To: python-list@python.org Subject: Re: Verify JSON Data Date: Mon, 26 May 2014 12:44:52 -0400 References: <201405261137.10750.gheskett@wdtv.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="windows-1256" Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1401122701 news.xs4all.nl 2938 [2001:888:2000:d::a6]:49090 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72078 On Monday 26 May 2014 11:58:06 Chris Angelico did opine And Gene did reply: > On Tue, May 27, 2014 at 1:37 AM, Gene Heskett wrote: > > Just for S&G, and without checking the version numbers of anything, > > this may not be all that bulletproof a test: > > > > 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 > > > > Old, buntu 10.04.4 LTS system, all up to date security patches wise. > > kernal 3.13.9, PAE on a quad core phenom. > > > > Interesting result. Source of error? DamnedifIknow. > > Return value 127 might well mean that json_xs isn't installed. It's > very difficult for a non-program to tell you whether JSON is valid or > not :) So I'd be checking 'which json_xs' before continuing. > > ChrisA And locate comes back empty. So much for that. ;-) Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS