Re: [Json] JSON Concluded? Well, maybe not

Phillip Hallam-Baker <ietf@hallambaker.com> Mon, 01 January 2018 00:49 UTC

Return-Path: <hallam@gmail.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 399F1126DFB for <json@ietfa.amsl.com>; Sun, 31 Dec 2017 16:49:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.399
X-Spam-Level:
X-Spam-Status: No, score=-1.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 P89pfVo4aVix for <json@ietfa.amsl.com>; Sun, 31 Dec 2017 16:49:14 -0800 (PST)
Received: from mail-ot0-x241.google.com (mail-ot0-x241.google.com [IPv6:2607:f8b0:4003:c0f::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 92875124217 for <json@ietf.org>; Sun, 31 Dec 2017 16:49:14 -0800 (PST)
Received: by mail-ot0-x241.google.com with SMTP id 37so13446870otv.6 for <json@ietf.org>; Sun, 31 Dec 2017 16:49:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=nnOhP/U8S1sIzAWUqKymGoRKGAFbLrXcwdsREKYK+YY=; b=RwxtaAbziZ+fJLAHYd9Pn2kuQGtDCjxQHCixfVay7doriY2hYbkMsw0H7DVxxgvQEA dgeMMkyzFVAC0eTsDN82rOF4FTY/EQ01iEWKgwfRN7q4MfQ7bmc93bbgWvOTGKaNMisx TR2RaxJ7ZVkjud2yG91mWmb/tgsoykAgUWOf7TUeSBZ1uFXPfwKmtgg0dZnucVBkgBeN kIE7jExp43yZuMRWJIWzAQeDXQkJMcrNElEdDI+KH4xP0N+5q0kDUwqFIWhgUAjvVMZH VjvIprXyhZIOW/7eRnnLnDi2f6oyKlglgbT+ZcyYSyEWYuaUPpk8KqZzh1cFT59FVrfW fpRw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=nnOhP/U8S1sIzAWUqKymGoRKGAFbLrXcwdsREKYK+YY=; b=saGlAVU0yL6+RyVdnycZPh6Sdm2Xtz1fwnhDDYILlHlIClvIREA55vXRnolHo0XTt1 MVFcH/YB7j9exHaQCRmC6y3thiNnri9SKqybfJeLuKRHNqiKw7H/JXrPBDkScmRB7t+Q EXXSE+zxdPcg83lIPJSLzzSjEJlSAc4fkfqN695y4De+PfKWOlXHD1H9FxjhfzmzQijd oSYTWmG8ktL7qMbth/SFYSfOpACCfpqWK18Kb/jVJE5+ccZJJmnlY7RxH1+N+9kc+Llf QQ7RUo71NPWqB+Ue1cB2SoKI0vcBSes9LjNhMRJMcak5TG9vqyk8joQ7/VCT3kxDh9yn 7vtw==
X-Gm-Message-State: AKGB3mISK6L9xef+krlE/4q4He/macD9F/CzgfZiB3fVi7KvSydBkRXq cNUkGd3rEQcBy5qplO4ePTLED7rOn+nguMYTex4=
X-Google-Smtp-Source: ACJfBosOJEgNPWG+7Ll4dcAE7cAMueWBOCEd7BFXTBs/7QlfmQbQzJB6wu1p9RFEK6xxgu+IESocMInHrKIU2xMuHqc=
X-Received: by 10.157.63.69 with SMTP id m63mr17175109otc.52.1514767753833; Sun, 31 Dec 2017 16:49:13 -0800 (PST)
MIME-Version: 1.0
Sender: hallam@gmail.com
Received: by 10.157.49.87 with HTTP; Sun, 31 Dec 2017 16:49:13 -0800 (PST)
In-Reply-To: <CAHBU6itC+XAKhc_m_ywG5O2bpky9DnmzfiNVqP3WrxLaE7uenA@mail.gmail.com>
References: <13860352-ef8e-1d4b-2eff-27e275c25e3a@gmail.com> <CALH+fvqBGu0i=LcciYgOLSwbQJXfqgcXTdd=rxvfHfqiRyBj7g@mail.gmail.com> <CAHBU6itC+XAKhc_m_ywG5O2bpky9DnmzfiNVqP3WrxLaE7uenA@mail.gmail.com>
From: Phillip Hallam-Baker <ietf@hallambaker.com>
Date: Sun, 31 Dec 2017 19:49:13 -0500
X-Google-Sender-Auth: eWmRdA16cFpUvEduVBe0bmsOMf4
Message-ID: <CAMm+Lwj37WhOGMyksJ=qy2fNVm81y74-wYGzKVGDC7y3E1EuwQ@mail.gmail.com>
To: Tim Bray <tbray@textuality.com>
Cc: Richard Gibson <richard.gibson@gmail.com>, "json@ietf.org" <json@ietf.org>, Anders Rundgren <anders.rundgren.net@gmail.com>
Content-Type: multipart/alternative; boundary="001a11473304e2708f0561ac59f5"
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/sAjCrpTWyMoZinqWD6iOsy1BbgE>
Subject: Re: [Json] JSON Concluded? Well, maybe not
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.22
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: <https://mailarchive.ietf.org/arch/browse/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: Mon, 01 Jan 2018 00:49:17 -0000

I have a schema language that I use to generate Web Service clients and
services. The implementation is open source. It also generates reference
sections for an Internet Draft:

http://www.prismproof.org/Documents/draft-hallambaker-mesh-reference.html

Right now I have three separate schema languages that were written at
different times to target XML, JSON, ASN.1 and TLS style encodings. 90% of
them are the same.

What I think really commends JSON is the lack of extraneous information in
the schema. Let us say we are serializing an integer. In the TLS schema I
have to specify whether it is an 8, 16, or 32 bit, signed or unsigned, etc.
In JSON its just an integer.

I just want to think about my application, I want the serialization to be
as straightforward as possible. What I don't need or want is the type of
capabilities XML Schema gives me, the ability to specify that an integer is
greater then 4 and less than 23. That is not information I have ever found
the need to express in a schema and I have been using this approach to
generate protocols for 25 years.


What I have now is adequate for my needs right now. If there is interest in
a standard, I would probably want to clean up the approach and make it more
regularized.


On Sun, Dec 31, 2017 at 1:50 PM, Tim Bray <tbray@textuality.com> wrote:

> If I were going to make an argument for keeping the WG alive, it would
> require someone to get energized and submit an I-D for a plausible JSON
> schema system, or maybe even a much-needed formalization of JSONPath. We
> use JSONPath a lot at AWS.
>
> On Sun, Dec 31, 2017 at 10:43 AM, Richard Gibson <richard.gibson@gmail.com
> > wrote:
>
>> On the topic of JSON normalization, I believe that canonicaljson-spec
>> <http://gibson042.github.io/canonicaljson-spec/> covers all cases while
>> respecting prior art like https://tools.ietf.org/html/dr
>> aft-staykov-hu-json-canonical-form-00 and RFC 7638. I'd like to get it
>> published as an RFC to handle scenarios like those mentioned by Anders
>> Rundgren, but am not sure how to go about doing so. Is this a good place to
>> ask for assistance?
>>
>> On Sun, Dec 31, 2017 at 12:24 AM, Anders Rundgren <
>> anders.rundgren.net@gmail.com> wrote:
>>
>>> Congratulations everybody to the revised JSON RFC!
>>>
>>> Does this mean that JSON is "done" for good?
>>>
>>> Probably not because the concept I have mentioned from time to time, the
>>> ability adding a digital signature to a JSON object (in contrast to signing
>>> arbitrary Base64Url-encoded data), is still very much alive.  In fact,
>>> there is an I-D in preparation aiming at reducing the current proliferation
>>> of "DIY-standards" for dealing with this highly requested feature.  The
>>> only real challenge is agreeing on a suitable way "normalizing" JSON data
>>> during parsing and serialization.  Such a scheme will be like an extended
>>> version of I-JSON (RFC7493), potentially having an impact on "ordinary"
>>> uses of JSON as well.
>>>
>>> Happy New [and optionally signed] JSON Year
>>> Anders Rundgren
>>>
>>> _______________________________________________
>>> json mailing list
>>> json@ietf.org
>>> https://www.ietf.org/mailman/listinfo/json
>>>
>>
>>
>> _______________________________________________
>> json mailing list
>> json@ietf.org
>> https://www.ietf.org/mailman/listinfo/json
>>
>>
>
>
> --
> - Tim Bray (If you’d like to send me a private message, see
> https://keybase.io/timbray)
>
> _______________________________________________
> json mailing list
> json@ietf.org
> https://www.ietf.org/mailman/listinfo/json
>
>