Re: FYI: JSON parsing

Julian Reschke <julian.reschke@gmx.de> Thu, 27 October 2016 10:40 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 10E56129D3E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 27 Oct 2016 03:40:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.352
X-Spam-Level:
X-Spam-Status: No, score=-7.352 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.431, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I0mJpmzQpjEc for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 27 Oct 2016 03:40:29 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CCB871294BC for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 27 Oct 2016 03:40:29 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1bzi2S-0001Zs-RQ for ietf-http-wg-dist@listhub.w3.org; Thu, 27 Oct 2016 10:36:00 +0000
Resent-Date: Thu, 27 Oct 2016 10:36:00 +0000
Resent-Message-Id: <E1bzi2S-0001Zs-RQ@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1bzi2K-0001Yx-Uq for ietf-http-wg@listhub.w3.org; Thu, 27 Oct 2016 10:35:52 +0000
Received: from mout.gmx.net ([212.227.15.19]) by mimas.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <julian.reschke@gmx.de>) id 1bzi2D-0002eM-Ms for ietf-http-wg@w3.org; Thu, 27 Oct 2016 10:35:47 +0000
Received: from [192.168.178.20] ([93.217.76.137]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0M5tof-1cnnfR2wSv-00xqLe; Thu, 27 Oct 2016 12:35:08 +0200
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
References: <B10FA80E-0A8E-4DBF-A400-963A582B7677@mnot.net> <66144.1477553363@critter.freebsd.dk> <e00a76b6-3b4b-6eb1-41a4-9214e93cdaf3@gmx.de> <66657.1477558851@critter.freebsd.dk> <b41122ed-b25a-7ce8-a3bf-331d9f916bad@gmx.de> <66682.1477559277@critter.freebsd.dk>
Cc: Mark Nottingham <mnot@mnot.net>, HTTP working group mailing list <ietf-http-wg@w3.org>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <f860d854-ca01-ec4e-f7a3-86c58d77f502@gmx.de>
Date: Thu, 27 Oct 2016 12:35:07 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
MIME-Version: 1.0
In-Reply-To: <66682.1477559277@critter.freebsd.dk>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:dg2xq/15b0APFuf/yalf4uoGOdYhFU4kTFZ/dwmIt+75KDCCcFg uM2MBQgL7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julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-6.7
X-W3C-Hub-Spam-Report: AWL=-0.079, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1bzi2D-0002eM-Ms a11d7dfdfd62b4b5fd99bb24c6612312
X-Original-To: ietf-http-wg@w3.org
Subject: Re: FYI: JSON parsing
Archived-At: <http://www.w3.org/mid/f860d854-ca01-ec4e-f7a3-86c58d77f502@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32692
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 2016-10-27 11:07, Poul-Henning Kamp wrote:
> --------
> In message <b41122ed-b25a-7ce8-a3bf-331d9f916bad@gmx.de>de>, Julian Reschke writes
> :
>
>> Yes, but it's not relevant whether we can transport random JSON. What's
>> relevant is that all JSON can be converted to something that can be
>> safely transmitted in HTTP/1.1 header field values (and that is the case).
>
> But then it is no longer JSON but "JSON with footnotes".
>
> We can haggle about how many footnotes are necessary, or if they're
> important, but there's no escaping that they will trip people up
> and cause bugs and possibly security holes down the line.

Well, the conversion to field value notation is quite simple; see 
<https://greenbytes.de/tech/webdav/draft-ietf-httpbis-jfv-02.html#rfc.section.3>.

Best regards, Julian