Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80374 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94317 invoked from network); 11 Jan 2015 17:27:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2015 17:27:39 -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.213.177 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.213.177 mail-ig0-f177.google.com Received: from [209.85.213.177] ([209.85.213.177:49255] helo=mail-ig0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/D1-18257-A82B2B45 for ; Sun, 11 Jan 2015 12:27:38 -0500 Received: by mail-ig0-f177.google.com with SMTP id z20so8579199igj.4 for ; Sun, 11 Jan 2015 09:27:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=xAirZ8cey8qcblMfS0argbpeFQ/NU19IvsSnNoZhG/Y=; b=rjZa8qUOxrXMrzSzC76Pv+vGzoWqLVQBXnm82jDPwlCdXWrlvXKr1O+0i+NyYTYmSQ 4JpoyukfU0z/Bcd33IMdqZeLB6A/Wl6nCAU5YZyliworEAAMhenbvqOOfVsgzJTbMk7i n7bwYrp4GcpvQoDgiSv82tfU4aLSwKTxWuWKlXqVt/WePdVLJLSZmqOPtNSXZBIrWZKX +unFYddFGdZ2AI5PToYw9EJ1thz9Fe0KYlBhftUWuuP5wICEWFshCFYRsbyQiL9Rp+FR 95FA5tGO0p0Ui9HDfbl8CSzy1CMrRGlv7z9Wnklz9Q5eFqck39ByFxWQOLdfrSLNZ1Zr SNNQ== MIME-Version: 1.0 X-Received: by 10.107.41.148 with SMTP id p142mr23187986iop.64.1420997255891; Sun, 11 Jan 2015 09:27:35 -0800 (PST) Sender: jakub.php@gmail.com Received: by 10.107.11.30 with HTTP; Sun, 11 Jan 2015 09:27:35 -0800 (PST) Date: Sun, 11 Jan 2015 17:27:35 +0000 X-Google-Sender-Auth: sO7DkFq7nqaqL6P7WRgmm1po1n4 Message-ID: To: PHP internals list Content-Type: multipart/alternative; boundary=001a1141d074aa1078050c63b414 Subject: [RFC] jsond From: bukka@php.net (Jakub Zelenka) --001a1141d074aa1078050c63b414 Content-Type: text/plain; charset=UTF-8 Hi, This rfc about replacing json with jsond is under discussion. https://wiki.php.net/rfc/jsond I have finally done some benchmarks. You can find a link in the RFC. It's been extensively tested for the last few months and there is just one BC that I'm aware of. The new parser accepts only float number that conforms to RFC 7159 . This is also not consistent between decoding float number that are and are not in the array/object ( there are two conversion rules). The following formats are rejected: 1. parsed at the top level: 07, 0xff, .1, -.1 2. parser by JSON_Parser: [1.], [1.e1] I feel that this was a bug in the new parser and we must conform to RFC 7159 ! Cheers Jakub --001a1141d074aa1078050c63b414--