Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86547 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6998 invoked from network); 10 Jun 2015 11:22:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2015 11:22:35 -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.41 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.213.41 mail-yh0-f41.google.com Received: from [209.85.213.41] ([209.85.213.41:33631] helo=mail-yh0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7B/58-61871-AFD18755 for ; Wed, 10 Jun 2015 07:22:34 -0400 Received: by yhpn97 with SMTP id n97so19027619yhp.0 for ; Wed, 10 Jun 2015 04:22:32 -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=eDaKl3hf3IJNCEdoL03BSBQWZHr6PkD1tYlbFh3eUSE=; b=dgy0pGlpqNyz9Jg6ufgscppTDtsto8TVAvkqwX7vDruqCwjVF5+5fBxuoq0mBaaA/A 0eR45czkLeeLfBX2A4bDsJV9NkVzHG5h4sJdZAH+lIeGi9I9QDJfhWWiw+n5JJU7hEEu L1j8k+cHA0sVAZL2ftuqn7Vduipg9DIPlNVl1LzNIels6SwTG2D5Td1jaFAodDvLvmAF TTtAG9y5XzMwKs7NUQeDS30BaXdhoon3YfO3hIBBDXSRrLazDl6sLCC34rJVDgA1kkJv T3ysZ6CuUjCGKCP38aokNq/RaV7v7FeDrHJSx21C72wd/by0jiJTQEGcZwW3O/XXxJia ibEQ== X-Received: by 10.13.247.3 with SMTP id h3mr3219860ywf.154.1433935351953; Wed, 10 Jun 2015 04:22:31 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.13.246.2 with HTTP; Wed, 10 Jun 2015 04:21:51 -0700 (PDT) In-Reply-To: References: Date: Wed, 10 Jun 2015 20:21:51 +0900 X-Google-Sender-Auth: z2vyKNAlbqzxmlBX6ttE9qWkYls Message-ID: To: Jakub Zelenka Cc: Derick Rethans , PHP internals list Content-Type: multipart/alternative; boundary=94eb2c0802a048be4a0518281799 Subject: Re: [PHP-DEV] [VOTE] JSON number to string From: yohgaki@ohgaki.net (Yasuo Ohgaki) --94eb2c0802a048be4a0518281799 Content-Type: text/plain; charset=UTF-8 Hi Jakub, On Wed, Jun 10, 2015 at 8:09 PM, Jakub Zelenka wrote: > The idea would be to use JSON schema just for selecting the type for > deserialized item in decoded JSON. It means that you could for example > select one float item that you want to decode as a string but other floats > would be still decoded as floats. That gives a better flexibility and helps > the problem in the same way. Please see my email to Alexey when we > discussed this RFC (there are few examples): > > https://www.mail-archive.com/internals@lists.php.net/msg78698.html > Thank you for the reply. This could be done, but requires more work just to get raw value out of JSON. So I vote "yes" for all because your RFC is feasible resolution and useful enough. As I wrote in somewhere in discussion, it was better if all values are decoded as string just like DB values. Encoding is headache, though.. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --94eb2c0802a048be4a0518281799--