Re: FYI: JSON parsing

Julian Reschke <julian.reschke@gmx.de> Thu, 27 October 2016 08:53 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 C9E0D129CCF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 27 Oct 2016 01:53:40 -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 zJPoHn_duknW for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 27 Oct 2016 01:53:36 -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 CEC0D129CD5 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 27 Oct 2016 01:53:34 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1bzgOK-0005R9-DI for ietf-http-wg-dist@listhub.w3.org; Thu, 27 Oct 2016 08:50:28 +0000
Resent-Date: Thu, 27 Oct 2016 08:50:28 +0000
Resent-Message-Id: <E1bzgOK-0005R9-DI@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1bzgOD-0005QJ-U6 for ietf-http-wg@listhub.w3.org; Thu, 27 Oct 2016 08:50:21 +0000
Received: from mout.gmx.net ([212.227.15.18]) by titan.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <julian.reschke@gmx.de>) id 1bzgO4-00036Q-FY for ietf-http-wg@w3.org; Thu, 27 Oct 2016 08:50:16 +0000
Received: from [192.168.178.20] ([93.217.76.137]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MAgzj-1cAuVy44Pj-00BvLn; Thu, 27 Oct 2016 10:49:42 +0200
To: Poul-Henning Kamp <phk@phk.freebsd.dk>, Mark Nottingham <mnot@mnot.net>
References: <B10FA80E-0A8E-4DBF-A400-963A582B7677@mnot.net> <66144.1477553363@critter.freebsd.dk>
Cc: HTTP working group mailing list <ietf-http-wg@w3.org>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <e00a76b6-3b4b-6eb1-41a4-9214e93cdaf3@gmx.de>
Date: Thu, 27 Oct 2016 10:49:40 +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: <66144.1477553363@critter.freebsd.dk>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:dr/0J4HwM6JBbeXJGvlWZJH3zc5y7NEvSLNgHokjOe9FnLm/jOM JAaz46uFNzzS/4UeXOdk18eskl5YO/SUU4bd3YVfQZq88U1EmqzspMu0hJ5nSjWNA/Ubda3 7cPIasuevb0jKtidQeJJPzdre1RbzAL1zNtvrjwseodrPg5uLZr6uh0ft/XL1EaVBHIgSr4 WNF//D1G+KZUxYzWufmqg==
X-UI-Out-Filterresults: notjunk:1;V01:K0:8mGJD/6PxxY=:PM7oFWR/9k0URWWF2A2+36 oK0Ozj+P4iSvSoy4t2ZXPz5MW2Udu60o0a24s4SJ4Y0d1qS4tk6ewTShJPg+nqpwJczqpFqvn MRQcNhsfHCOf+vn+eBfIELJ2n0u8Z0bwpUXdoOFc798NcI6z9N0prvM0OBIsx7+3oWV4OL142 iVgjblbYM3h8r4Yu3RtV4IhyCG1j0OpwiXp1YFsUYgW0zrSobOYvQasZXEEzk7qHk3/+BY+PO 5FlGx32AaH1A+bJ/EJrNkP1fMy3Alv0WTBPMkdkV4XnVeZtVW00MV/DbtMdoln13dPwE6s/pi ki6n5/89BR+3Po+AyLOmw41gMLqJvvJv2YPeLgoozGoE2/xYO6h3kg4jpFhx0okkXaUHyOD11 Wmc+4VYg/kuBVvS/KlAnqdrLda3rrqrlsGLA4pNz2E1GABa6e/l+wmvyqenSJBqCkTFXPXY56 hG9HkB2JyvZ1OsudKygUW7u15oiUD5GCZF7ew3P52ZK2iYPqXiO4e5QXHsOUUNaIdUHatuVjF m9WGtBsSjoysmCVY4eIJDZkKJDZ1PJ0eoc4HC1tTiNzE6O5dswfYACJ53g8Mw6XhznGQu09yd K4vf1D1MoMrnX765ftdkLXFWmkU/6cogUTI17KfG3iN5wFlSp0MCnKQCh3Qiqp4mWrtuu/Lgt opFR+5xHP1dhUoEiuUthmPqUD9utzKm7HYsGKq7gcoaVzp2W/xOngh6ZoFQf+/F+Bzki4hFG6 idxMamofnriSpvD4SOcwDL3J9RUWK059GoFcSw4HuiG8mWLLswX5Res9UBSFoMmPYcwcEgqd0 UWsAe7t
Received-SPF: pass client-ip=212.227.15.18; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-6.7
X-W3C-Hub-Spam-Report: AWL=-0.078, 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: titan.w3.org 1bzgO4-00036Q-FY d92e350cc0de9ab5c95db99a73ca5d18
X-Original-To: ietf-http-wg@w3.org
Subject: Re: FYI: JSON parsing
Archived-At: <http://www.w3.org/mid/e00a76b6-3b4b-6eb1-41a4-9214e93cdaf3@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32688
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 09:29, Poul-Henning Kamp wrote:
> --------
> In message <B10FA80E-0A8E-4DBF-A400-963A582B7677@mnot.net>et>, Mark Nottingham wri
> tes:
>
>> For those who haven't seen it, this is a pretty deep dive on JSON
>> parsing ambiguities and mis-implementations.
>>
>>  http://seriot.ch/parsing_json.html
>>
>> Food for thought...
>
> Add to that thought that we cannot even use JSON to begin with, because
> of the restrictions on H1 headers...

Sorry? Could you elaborate?

If we can't do it, why are people doing it successfully already?