Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73164 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81873 invoked from network); 14 Mar 2014 14:12:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Mar 2014 14:12:29 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.54 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.219.54 mail-oa0-f54.google.com Received: from [209.85.219.54] ([209.85.219.54:38789] helo=mail-oa0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/60-11488-C4E03235 for ; Fri, 14 Mar 2014 09:12:28 -0500 Received: by mail-oa0-f54.google.com with SMTP id n16so2668805oag.13 for ; Fri, 14 Mar 2014 07:12:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ObwXJrdjgZjCAnSJsc8mpbttXB0OsoTg144tR+vQiqs=; b=o1LjJvw1BjX6BIdPGzy4ZT0wErdPj5NqVyyRqIgIKTSBlVLI0puJGmbJcI14NOO/rd qiaH9YyMIcTH/bCWMyt/Hdsfe/j75DI2iHh0bZSDufiVZSrz821ofXvHRKDXDElYNaXA sspddG45mDCgz19kJEmLUxAEJ0JE6LjQzBbU+hzL9p+vrgOQ5drOdpe9FwTOMf8Y3kD7 ujHfO7OY0to2oO0WxwdlVS+Y+rEWvuPl7EjuIDPtezyDEEU4bLKRTIWu9O7OgvIUvHn7 2T2dPa7kKpt4IT3RuEDKOHe0scLi0NkhU2b2fws53HK42lhpoX6QUrEkBFv1UaUIAPHT LR9g== MIME-Version: 1.0 X-Received: by 10.182.176.10 with SMTP id ce10mr6841605obc.31.1394806344925; Fri, 14 Mar 2014 07:12:24 -0700 (PDT) Received: by 10.76.77.8 with HTTP; Fri, 14 Mar 2014 07:12:24 -0700 (PDT) In-Reply-To: References: Date: Fri, 14 Mar 2014 08:12:24 -0600 Message-ID: To: Marco Schuster Cc: Jakub Zelenka , PHP internals list Content-Type: multipart/alternative; boundary=e89a8ff25042b8480f04f491a88f Subject: Re: [PHP-DEV] New JSON parser From: morrison.levi@gmail.com (Levi Morrison) --e89a8ff25042b8480f04f491a88f Content-Type: text/plain; charset=ISO-8859-1 > > > I need to do more testing before creating RFC for replacing the current > > parser. There is still space for further improvements. If anyone has any > > ideas, please let me know. Or if you could test it, that would be great > > too! ;) > > At least for the decoding part, it might be worth to look at the > "Improving JSON" proposal (http://bolinfest.com/essays/json.html). > tl;dr: support trailing or automatic line-end commas, //-style > comments and keys not wrapped in "s, basically extend JSON syntax to > ES5. > I also oppose these proposals. > Also, will end-users be able to get the JSON parser error message? > Currently, all you get is a NULL returned when you have a parse error > somewhere in your JSON - and it's a nightmare to debug with this. > This is a problem, I agree. --e89a8ff25042b8480f04f491a88f--