Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73435 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73779 invoked from network); 25 Mar 2014 23:35:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Mar 2014 23:35:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=giunta.gaetano@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=giunta.gaetano@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.178 as permitted sender) X-PHP-List-Original-Sender: giunta.gaetano@gmail.com X-Host-Fingerprint: 209.85.212.178 mail-wi0-f178.google.com Received: from [209.85.212.178] ([209.85.212.178:49148] helo=mail-wi0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/10-07356-BB212335 for ; Tue, 25 Mar 2014 18:35:24 -0500 Received: by mail-wi0-f178.google.com with SMTP id bs8so1214137wib.5 for ; Tue, 25 Mar 2014 16:35:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=O9U/rSTLFvkw/ygWYKAUrNrQd41oRd82S99CI+iH07s=; b=wVDkbbWUwpcqAByw0JQ8262ySxITWfz5kE95TzS7NDMXTO8L4ZmFZQjD/EFz+QM9Rd jl4ivxMIN6DLr6Tl/1gWxhK47yo7cnBqZ74KOIccEUN3MP1yO1BOnDC9oXsNvHikRwp2 Pt21TRX1062Wi+I6LbE8fnxm/vm0Do1ytl4Jo42GOBjKVY5AGX7Za7D1DIbBrTTFgQKq XRstfwgsa0MOdo9QIfSwr15la6dj/LzSttiNwhV32WlDqj8a8Uybgsesai5BUjeeDSHT Ff52nuLdgdR5LMPPxPc2u4UyVLxMRQnVJ6og5zMfqOiPfNENGzl/ur5aJEFOU6lgDkCd rH9Q== X-Received: by 10.180.107.136 with SMTP id hc8mr27213361wib.11.1395790520439; Tue, 25 Mar 2014 16:35:20 -0700 (PDT) Received: from [127.0.0.1] (88-191-143-98.rev.dedibox.fr. [88.191.143.98]) by mx.google.com with ESMTPSA id ga20sm54669161wic.0.2014.03.25.16.35.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 16:35:19 -0700 (PDT) Message-ID: <533212BC.9040908@gmail.com> Date: Tue, 25 Mar 2014 23:35:24 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Jakub Zelenka , PHP internals list References: <5330B038.3010805@gmail.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------090309070302080306080302" Subject: Re: [PHP-DEV] Re: New JSON parser From: giunta.gaetano@gmail.com (Gaetano Giunta) --------------090309070302080306080302 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Jakub Zelenka wrote: > Hi, > > It looks quite useful. Do you share sources somewhere? > This should be it, more or less (old stuff, not sure I can dig it up perfectly) https://github.com/gggeek/phpxmlrpc-extras/blob/master/jsonrpc/testsuite.php > Thanks > > Jakub > > > On Mon, Mar 24, 2014 at 10:22 PM, Gaetano Giunta > wrote: > > While definitely not a comprehensive test suite, here is a page I had set up ages ago when comparing JSON decoders: > http://gggeek.altervista.org/sw/article_20070425.html > > What I was especially interested in are "edge cases", ie. strings which fall outside the spec but might be decoded as something else than NULL by -some- > libs at -some point in time- (ie. comments, trailing commas etc), or generate errors/warnings which one could also like to keep stable as part of an API > contract. > > That's why I think it might still be useful, as it seems that hoaproject focuses on parsing *valid* strings instead. > > Bye > Gaetano > > --------------090309070302080306080302--