Re: [Json] Fwd: Blog: YANG Takes Off in the Industry

Ladislav Lhotka <lhotka@nic.cz> Fri, 01 August 2014 15:33 UTC

Return-Path: <lhotka@nic.cz>
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 3E3491B27DF for <json@ietfa.amsl.com>; Fri, 1 Aug 2014 08:33:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.652
X-Spam-Level:
X-Spam-Status: No, score=-0.652 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HELO_EQ_CZ=0.445, HOST_EQ_CZ=0.904, RP_MATCHES_RCVD=-0.001] autolearn=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 5n3bVoixX8em for <json@ietfa.amsl.com>; Fri, 1 Aug 2014 08:33:53 -0700 (PDT)
Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D97FB1B27D9 for <json@ietf.org>; Fri, 1 Aug 2014 08:33:52 -0700 (PDT)
Received: from [172.29.2.201] (nat-5.bravonet.cz [77.48.224.5]) by mail.nic.cz (Postfix) with ESMTPSA id 0F0BD13F890; Fri, 1 Aug 2014 17:33:50 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nic.cz; s=default; t=1406907231; bh=KvvPo9rXBe1qTRJlkP4UrStgA2SoZSAOs1xac10sVu4=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Content-Transfer-Encoding:Message-Id:References:To; b=NdC53yegDcLinLw7vW/hFolUyvAhOEzwbt5cqp7TCZUd1HorzhNTWI7u2fYEAeWwc tb2bfdNPQGoKQo7mPWHTFW5k1YOewavScnCsu6Ik6SD1zDuzd5a/XdkOxnCG4oEpX2 fNbpXJW/l8QmWcr9B/zXo4ehemp0WtyfCKnqFzpc=
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Ladislav Lhotka <lhotka@nic.cz>
In-Reply-To: <20140801123546.GD23649@mercury.ccil.org>
Date: Fri, 01 Aug 2014 17:33:48 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <1EF1D799-6B51-4738-ADE7-CE8134EE8EA1@nic.cz>
References: <53DB7757.8000600@cisco.com> <39ADA8F1-D204-4B2C-A1AC-0CA1F3B238D1@tzi.org> <20140801115408.GC23649@mercury.ccil.org> <CAMm+LwhFBuUj3=Od1cEAGr8k1=wa4gZZCU-AJJf+PySPG0MupA@mail.gmail.com> <20140801123546.GD23649@mercury.ccil.org>
To: John Cowan <cowan@mercury.ccil.org>
X-Mailer: Apple Mail (2.1878.6)
X-Virus-Scanned: clamav-milter 0.98.1 at mail
X-Virus-Status: Clean
Archived-At: http://mailarchive.ietf.org/arch/msg/json/ermX7uM62zw-UcQ7YcXpLBPiqcY
Cc: Carsten Bormann <cabo@tzi.org>, Phillip Hallam-Baker <ietf@hallambaker.com>, JSON WG <json@ietf.org>
Subject: Re: [Json] Fwd: Blog: YANG Takes Off in the Industry
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: Fri, 01 Aug 2014 15:33:54 -0000

On 01 Aug 2014, at 14:35, John Cowan <cowan@mercury.ccil.org> wrote:

> Carsten Bormann scripsit:
> 
>> That vacuum is filled by draft-ietf-netmod-yang-json-00.  (Nature
>> abhors vacuum.)
> 
> Neither here nor there: that is merely a JSON expression of the XML.  It

Not really: the XML-JSON translation is schema-driven so that, for instance, XML leaf element text can become a string, numeric or boolean value in JSON depending on the type of that leaf node in the YANG data model. Also, an XML element may be mapped to a JSON name/object or name/array depending on whether it is defined as a container or list in YANG.

So, YANG can and does really act as a domain-specific schema language for both XML and JSON.

Lada

> has nothing to do with modeling JSON.
> 
> Phillip Hallam-Baker scripsit:
> 
>> But you could use it to create a data model that was represented in
>> JSON.
> 
> I haven't read the RFC in any detail, but the model given in 4.2.2 does
> not seem to be a JSON model: it is far more complicated.
> 
>> And that community refuses to make any changes to XML or XML schema to
>> support protocol work.
> 
> Or for any other purpose.  Ghu knows I tried.
> 
>> So XML is a bad choice for protocol design.
> 
> That conclusion I believe to be unwarranted.  The problems with XML are
> mostly the hard-to-use APIs, of which one of the worst is that embedded
> in all browsers.  If anything is carved in stone these days, it is the
> DOM.
> 
> -- 
> John Cowan          http://www.ccil.org/~cowan        cowan@ccil.org
> Yakka foob mog.  Grug pubbawup zink wattoom gazork.  Chumble spuzz.
>    --Calvin, giving Newton's First Law "in his own words"
> 
> _______________________________________________
> json mailing list
> json@ietf.org
> https://www.ietf.org/mailman/listinfo/json

--
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: E74E8C0C