Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86544 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98253 invoked from network); 10 Jun 2015 10:58:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2015 10:58:20 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.51 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.213.51 mail-yh0-f51.google.com Received: from [209.85.213.51] ([209.85.213.51:35038] helo=mail-yh0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E7/76-61871-B4818755 for ; Wed, 10 Jun 2015 06:58:19 -0400 Received: by yhak3 with SMTP id k3so18730375yha.2 for ; Wed, 10 Jun 2015 03:58:16 -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:from:date:message-id :subject:to:cc:content-type; bh=jmfV/XUcOmAH+VzkEohoZGvbhbDpUcOtNZCVicOZ/dg=; b=xtzJnue8OhH8X1uHCZwdYlByDy9roro61zlmkt2cNkY0e3Msm57qHHcPk27QiCx7ei whRyeAmI0OsvPSZmdmcSTfMhbyXIhcNrSdQxuIEsmYYc4r5KHFyzdyCa64rcZKBU4r5e 69U1fxPV1/j3h4IhX6LEZVVbjiX5b4S96JK1L5wj34CalB22BpvCMdBhiraIZwsir2pW e5Ty1tFM+1fCkx2XdEQMzNTtVhtwGh71in8hgEGDCnolpBC1wDm8d/PEbRoFfpUyb+Ba 5Z5ZZjctU2zsWgh/oAHYszj5ASlRPofkfY2N8wqOpaGkquwTb7oXUfaPOsazNwcygjWE zVUA== X-Received: by 10.129.97.213 with SMTP id v204mr2981914ywb.56.1433933896695; Wed, 10 Jun 2015 03:58:16 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.13.246.2 with HTTP; Wed, 10 Jun 2015 03:57:36 -0700 (PDT) In-Reply-To: References: Date: Wed, 10 Jun 2015 19:57:36 +0900 X-Google-Sender-Auth: 7zQZHFZaDdL6O0iyxKTBcKrukbs Message-ID: To: Derick Rethans Cc: Jakub Zelenka , PHP internals list Content-Type: multipart/alternative; boundary=001a11492eec8b4407051827c0ad Subject: Re: [PHP-DEV] [VOTE] JSON number to string From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11492eec8b4407051827c0ad Content-Type: text/plain; charset=UTF-8 Hi Derick, On Wed, Jun 10, 2015 at 7:28 PM, Derick Rethans wrote: > > Hi, > > > > The voting is now open: > > > > https://wiki.php.net/rfc/json_numeric_as_string#voting > > FWIW, I voted no to all of them because (as you even say in the RFC), > this is probably better be solved with a JSON schema thingy. JSON Schema does not help to decoding/encoding numeric data without loosing data. JSON Schema Core http://json-schema.org/latest/json-schema-core.html#anchor8 Note: JSON specification does not specify precision. So number could be any number. JSON Schema Validation http://json-schema.org/latest/json-schema-validation.html#anchor5 Those who do not care rounding errors/etc, they can use default behavior. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11492eec8b4407051827c0ad--