Re: [Json] JSON Log file encoding JSON-L

Phillip Hallam-Baker <hallam@gmail.com> Wed, 07 May 2014 21:19 UTC

Return-Path: <hallam@gmail.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E14121A039B for <json@ietfa.amsl.com>; Wed, 7 May 2014 14:19:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=ham
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 B3FxW08dC46W for <json@ietfa.amsl.com>; Wed, 7 May 2014 14:18:59 -0700 (PDT)
Received: from mail-lb0-x22a.google.com (mail-lb0-x22a.google.com [IPv6:2a00:1450:4010:c04::22a]) by ietfa.amsl.com (Postfix) with ESMTP id 9CE001A01B2 for <json@ietf.org>; Wed, 7 May 2014 14:18:58 -0700 (PDT)
Received: by mail-lb0-f170.google.com with SMTP id w7so2251812lbi.29 for <json@ietf.org>; Wed, 07 May 2014 14:18:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=WRXWdOFLxbmn4b5VKE296XkO0Ma9LYz5Hq5VNVfrq+E=; b=hm5LFxKJ5HwX4oamSXxc0yA/OJyTzJs7G6TPW6xLqcCt1V77/5G3islN10pYn8WBMo 4ZK1y82sCJNjxeZtSaB8qJjAu+1pKVRP9wxZlVDMhkkZSFknx0jcT89r9uupkWMSzEGs UVp7KM9DQ2frYpndi4NHgJy6KZ2YMa1FYD9vdQOc6fr+MGInpD4suLSGjsj0vBE1ZIrK OO6fPJBfi6swdBZ0W85TGJlgTCsS/R2AQBDubsXROYEtxqBFEk7vxIc731EhL21wRqF+ P4lBWMlEPezWVFpR4zlca1Q+/Yb30asP3YYQRlNJcD0Tf5kbjEAgq0MWJgS0Eb9Ct4B/ /pkw==
MIME-Version: 1.0
X-Received: by 10.112.132.2 with SMTP id oq2mr19436303lbb.33.1399497533435; Wed, 07 May 2014 14:18:53 -0700 (PDT)
Received: by 10.112.234.229 with HTTP; Wed, 7 May 2014 14:18:53 -0700 (PDT)
In-Reply-To: <CAK3OfOj=im4G8N0SkSB1SEFoFxfe2Auw05BWcsKNXZSdJ5X9cw@mail.gmail.com>
References: <CAMm+LwjB-51z4GoeC0riehmJg1HAddmLAyfMsVOCVM80i=RiMA@mail.gmail.com> <B9D8B85D-EF2C-4B3A-90A4-873C714C06FA@tzi.org> <CAK3OfOhGpUatFotCPwpHw=wu4zphxWOAk6dvX2UOZJRzw23JEA@mail.gmail.com> <CAK3OfOh1R851pBETEJtzM7_rCvrhxedCn5v5==nHumstE9VSRA@mail.gmail.com> <CAMm+LwiyJmk+3m25x28ZWhuCi84uW4O1iHn-N2CmXt_VzcDw9w@mail.gmail.com> <20140507011853.GA5011@mercury.ccil.org> <CAMm+Lwg-t3nc5-nk3JHV5RjKRQ+M9g8jY=VCKDAQU2G+Z1Mcdg@mail.gmail.com> <CAO1wJ5RgAdDs2_HCsTV2TarOJzB460FDmMbiE7q-r7bvWHT37A@mail.gmail.com> <CAK3OfOhG_jV++07iLF1ga6tJCKYiEeW_4=U7=HLR8Aq-KYPV3g@mail.gmail.com> <CAMm+LwgyXdSvmSx13boRZJJycQUO4Vsv=zTrHGrL_q0=2PM3hg@mail.gmail.com> <CAK3OfOj=im4G8N0SkSB1SEFoFxfe2Auw05BWcsKNXZSdJ5X9cw@mail.gmail.com>
Date: Wed, 07 May 2014 17:18:53 -0400
Message-ID: <CAMm+Lwh2kg21-_HVQxE_PyAmuzD_eHq4F56GS3B5OmG0J__1YQ@mail.gmail.com>
From: Phillip Hallam-Baker <hallam@gmail.com>
To: Nico Williams <nico@cryptonector.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: http://mailarchive.ietf.org/arch/msg/json/gdgH0cQ8WRPkELXEqqvJxbB1pWs
Cc: John Cowan <cowan@mercury.ccil.org>, Carsten Bormann <cabo@tzi.org>, Jacob Davies <jacob@well.com>, JSON WG <json@ietf.org>
Subject: Re: [Json] JSON Log file encoding JSON-L
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.15
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: Wed, 07 May 2014 21:19:01 -0000

On Wed, May 7, 2014 at 5:04 PM, Nico Williams <nico@cryptonector.com> wrote:
> On Wed, May 7, 2014 at 3:46 PM, Phillip Hallam-Baker <hallam@gmail.com> wrote:
>> If I open up a file with an RS character in it using notepad, how is
>> it going to look?
>
> Notepad, Wordpad, my Unix shells, my Unix $EDITOR -- all display it as
> a space or not at all.

So how can I look at a file and know if it is a well formed sequence or not?


>> Since RS is effectively an obsolete character the best I would expect
>> is to see ? all over the place.
>
> Nope.  And even so, who cares?  It's a log file, you'll not be editing it.

I open log files with an editor very frequently.


>> Unix and Windows both came to the conclusion that the only control
>> characters that are used are CR, LF and TAB. And CR is only used
>> because the Internet adopted CRLF as the line ending sequence rather
>> than LF.
>
> Try it.
>
>> JSON is a text based encoding. It is not the place to attempt to
>> resurrect long abandoned control character conventions.
>
> Try it.
>
> Nico
> --

It is easy enough to detect the sequence '}' *ws* LF *ws '{', its a
four state FSR. Why complicate things with characters that will cause
detours through untested code paths?



-- 
Website: http://hallambaker.com/