Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73431 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63744 invoked from network); 25 Mar 2014 20:28:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Mar 2014 20:28:06 -0000 Authentication-Results: pb1.pair.com header.from=jakub.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jakub.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qc0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:44694] helo=mail-qc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/51-55219-3D6E1335 for ; Tue, 25 Mar 2014 15:28:04 -0500 Received: by mail-qc0-f170.google.com with SMTP id e9so1441836qcy.29 for ; Tue, 25 Mar 2014 13:28:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=VyxkEifdQjHihPbYhSjddAl2uHjpiwjW0qJ3wSrzr64=; b=gkKEoqnQ/neualuBq3KsMEoNIaOUzquQ1RgD0i+XceaTV0JsT9gg6PLHhUldvELy5i RduoLOMcqCzyMDDFc5kVA6y7q5GIDNis5YxT0HxDCCBw8fwRJueUTU6S6jg+QHQYcMn6 KUDhUsHDy5O2WMWs1UHu5CaQof24FvFh1ZDAEqs7J251HRFYbZQuHOfA7H4bxSceiCOR 2M4A5WtTh/9ac+I2yh5glEtcJfetLfrYOHOBKfBeMx3k9sGidm93ApzwI3X1gWx8haGd Qz+eNsg4k+jTkwZGlUNPoN4SzA5x8tMWQREvpj5DUAi8QyC7uhtFYbpp/OHpEmiFe1JJ 63MQ== MIME-Version: 1.0 X-Received: by 10.140.101.74 with SMTP id t68mr4498976qge.106.1395779280623; Tue, 25 Mar 2014 13:28:00 -0700 (PDT) Sender: jakub.php@gmail.com Received: by 10.224.126.72 with HTTP; Tue, 25 Mar 2014 13:28:00 -0700 (PDT) In-Reply-To: <5330B038.3010805@gmail.com> References: <5330B038.3010805@gmail.com> Date: Tue, 25 Mar 2014 20:28:00 +0000 X-Google-Sender-Auth: cD4rONwrhwU0i9sin51wf4Hr8MI Message-ID: To: Gaetano Giunta Cc: PHP internals list Content-Type: multipart/alternative; boundary=001a11c16daa34de5b04f57430f4 Subject: Re: [PHP-DEV] Re: New JSON parser From: bukka@php.net (Jakub Zelenka) --001a11c16daa34de5b04f57430f4 Content-Type: text/plain; charset=ISO-8859-1 Hi, It looks quite useful. Do you share sources somewhere? 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 > --001a11c16daa34de5b04f57430f4--