Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73394 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54997 invoked from network); 24 Mar 2014 22:22:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Mar 2014 22:22:49 -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.170 as permitted sender) X-PHP-List-Original-Sender: giunta.gaetano@gmail.com X-Host-Fingerprint: 209.85.212.170 mail-wi0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:60392] helo=mail-wi0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6F/B9-02253-830B0335 for ; Mon, 24 Mar 2014 17:22:49 -0500 Received: by mail-wi0-f170.google.com with SMTP id bs8so2871933wib.5 for ; Mon, 24 Mar 2014 15:22:45 -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 :content-type; bh=lMDqCr/czPkZqTverMqz2sv/j2V62yILiDtjFKniQtI=; b=azI9ZQEOFaw7eS91yaLCNdIxkFq+P5UGSthI1b7xgB39YCAFwFBAtQiSV1HtpoHR/q XAVt8/Xmlf7TOW1SmvXUeE4Au/r7fQk2thKsAD9opleY2ff5WFTiw7yXNxk7Knldif0V 4eTjVocjGoZSq45Y6WZDEi2LA7LU7Q2KjjYyK2Kjjc84UYmNmbbvDgQwjNiuBo1AVKEh NSboEzlMwIrcN91FJwqGGvvVyWK6Q8nc7Y7dpD0TZn5u59b07czKeCO6PI6wMqP2zgEz mOLlr9jp9u85iT6UkkJmKocot7FMXK+SFRtVWMPR470TUoZ3xu1A/6PuaYrk9Op6pySm 2sPw== X-Received: by 10.180.19.130 with SMTP id f2mr18874718wie.6.1395699765849; Mon, 24 Mar 2014 15:22:45 -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 n15sm43545148wij.3.2014.03.24.15.22.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Mar 2014 15:22:45 -0700 (PDT) Message-ID: <5330B038.3010805@gmail.com> Date: Mon, 24 Mar 2014 22:22:48 +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: internals@lists.php.net Content-Type: multipart/alternative; boundary="------------090408050608010606060806" Subject: Re: New JSON parser From: giunta.gaetano@gmail.com (Gaetano Giunta) --------------090408050608010606060806 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------090408050608010606060806--