Re: [Json] Leading and trailing whitespace

Stephan Beal <sgbeal@googlemail.com> Tue, 11 June 2013 10:10 UTC

Return-Path: <sgbeal@googlemail.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BD1FF21F8F3E for <json@ietfa.amsl.com>; Tue, 11 Jun 2013 03:10:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.625
X-Spam-Level:
X-Spam-Status: No, score=-1.625 tagged_above=-999 required=5 tests=[AWL=0.352, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, NO_RELAYS=-0.001]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pIXMdEjMx4Xl for <json@ietfa.amsl.com>; Tue, 11 Jun 2013 03:10:27 -0700 (PDT)
Received: from mail-we0-x22b.google.com (mail-we0-x22b.google.com [IPv6:2a00:1450:400c:c03::22b]) by ietfa.amsl.com (Postfix) with ESMTP id 936EE21F8ECE for <json@ietf.org>; Tue, 11 Jun 2013 03:10:27 -0700 (PDT)
Received: by mail-we0-f171.google.com with SMTP id m46so5658709wev.2 for <json@ietf.org>; Tue, 11 Jun 2013 03:10:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=nTQxSFYictDRZtawF6ytWEXyq7o3De8+PC9DAJXN+EM=; b=cwS+NhXEEZvJJYnIhWqLJkaH5dfwrcVaMvwvdt/S3ssIIKTgSk7qc080udniqeOa0T mKpqDSYHGkJRh8hCgFbgdbEXHb9AnmMBUchbQ8Dm7I4fe7NxP+446+sQQkHbZc8Oat6H Z4MEpo7KW8jGRyS0jUMq5CgvUnQ4K4Sx8CjMMj+3DUIMIKHcRx2YBvLH7LbX8aB0Podr 13hRs3tm4xEqpWysQRN4fwBpoWGsMY4l/8nseNWdlHkYs9GBcFjtA3rYDARtfJT+0ZXn Sgev2NWt6Kedee2NIpeTwAP4aN67t0TEdZC1Pm+mRtqRhrEJjaSAPkN8cN1dxRUuVRZf dLvQ==
MIME-Version: 1.0
X-Received: by 10.180.206.180 with SMTP id lp20mr784585wic.41.1370945426752; Tue, 11 Jun 2013 03:10:26 -0700 (PDT)
Received: by 10.194.42.230 with HTTP; Tue, 11 Jun 2013 03:10:26 -0700 (PDT)
In-Reply-To: <070b01ce664b$e5e0ac10$b1a20430$@augustcellars.com>
References: <06c101ce6625$0f891bf0$2e9b53d0$@augustcellars.com> <379266A1-82C1-4FF5-BD7C-EE657F1FD41F@vpnc.org> <06e901ce6638$e8f27a90$bad76fb0$@augustcellars.com> <51DE7E41-D682-4340-A234-7F7CFE513C10@vpnc.org> <070b01ce664b$e5e0ac10$b1a20430$@augustcellars.com>
Date: Tue, 11 Jun 2013 12:10:26 +0200
Message-ID: <CAKd4nAgzEb+rvbSm3ZDe+ZRj5Obh_8U5hTdiX=rzX=o2uqja8A@mail.gmail.com>
From: Stephan Beal <sgbeal@googlemail.com>
To: "json@ietf.org" <json@ietf.org>
Content-Type: multipart/alternative; boundary=001a11c380b02b0e6604dede1b00
Subject: Re: [Json] Leading and trailing whitespace
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "JavaScript Object Notation \(JSON\) WG mailing list" <json.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json>, <mailto:json-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/json>
List-Post: <mailto:json@ietf.org>
List-Help: <mailto:json-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json>, <mailto:json-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 11 Jun 2013 10:10:28 -0000

On Tue, Jun 11, 2013 at 4:32 AM, Jim Schaad <ietf@augustcellars.com> wrote:

> Yes -but what I am saying is that there are (probably) parsers which stop
> before the string has been fully consumed.  Thus they would accept the

string as valid.
>

All of the parsers i've written or worked closely with stop processing at
the top of the closing tag for the root element. It doesn't generically
make sense to keep reading from a stream when you have received the virtual
EOF byte (the closing tag).

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal