[Cbor] CDDL: how to choose between json and cbor?

Christophe Lohr <christophe.lohr@imt-atlantique.fr> Wed, 11 September 2019 06:39 UTC

Return-Path: <christophe.lohr@imt-atlantique.fr>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B0551120814 for <cbor@ietfa.amsl.com>; Tue, 10 Sep 2019 23:39:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=imt-atlantique.fr
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 5GUSi74ClHaf for <cbor@ietfa.amsl.com>; Tue, 10 Sep 2019 23:39:36 -0700 (PDT)
Received: from zproxy110.enst.fr (zproxy110.enst.fr [137.194.2.192]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BC0BB12026E for <cbor@ietf.org>; Tue, 10 Sep 2019 23:39:35 -0700 (PDT)
Received: from localhost (localhost [IPv6:::1]) by zproxy110.enst.fr (Postfix) with ESMTP id A0DF980F36 for <cbor@ietf.org>; Wed, 11 Sep 2019 08:39:33 +0200 (CEST)
Received: from zproxy110.enst.fr ([IPv6:::1]) by localhost (zproxy110.enst.fr [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id II6EqU9c6TvU for <cbor@ietf.org>; Wed, 11 Sep 2019 08:39:33 +0200 (CEST)
Received: from localhost (localhost [IPv6:::1]) by zproxy110.enst.fr (Postfix) with ESMTP id 3CB048191B for <cbor@ietf.org>; Wed, 11 Sep 2019 08:39:33 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.10.3 zproxy110.enst.fr 3CB048191B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imt-atlantique.fr; s=50EA75E8-DE22-11E6-A6DE-0662BA474D24; t=1568183973; bh=XIWc+f7v0aKxQgZR/oJQQ061wYqctceSV8EtxUmcJAo=; h=To:From:Message-ID:Date:MIME-Version; b=ifeGWNUS/0cQFeoiOhxiJaLqwEV+jpf83sxW3v9sVCZdHbfkU3htRl5aqRHkxIyIW xS4a6WKz+7hCRyFVOsQ4FWAJ/hg68IUQwejGOJLs9OuxjdE3ttiY+9epyUmbHzmrI2 8wBxK00SnghRoBItFwEMM7dfvJp+jxnpNxdlUoHg=
X-Virus-Scanned: amavisd-new at zproxy110.enst.fr
Received: from zproxy110.enst.fr ([IPv6:::1]) by localhost (zproxy110.enst.fr [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id gPIBnV8Rzfaf for <cbor@ietf.org>; Wed, 11 Sep 2019 08:39:33 +0200 (CEST)
Received: from [IPv6:2001:660:7302:5:ba85:84ff:feb0:351a] (unknown [IPv6:2001:660:7302:5:ba85:84ff:feb0:351a]) by zproxy110.enst.fr (Postfix) with ESMTPSA id 0E5E1816FB for <cbor@ietf.org>; Wed, 11 Sep 2019 08:39:33 +0200 (CEST)
To: cbor@ietf.org
From: Christophe Lohr <christophe.lohr@imt-atlantique.fr>
Openpgp: preference=signencrypt
Autocrypt: addr=christophe.lohr@imt-atlantique.fr; prefer-encrypt=mutual; keydata= mQINBFidiI4BEAC/zpewWjK9zQSDxb5ue3RvpVE3GJJZHZtCTnUpUnlMs2cKE5ZFwgYnMGr6 hFZFubcZcg2iTWCAcGcaqGHufFlv1+T/zw6tN0XUEnJRDAdqPeefjrRzf264efp/2k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EAAYkCNgQYAQgAIBYh BEGWk6ojxnAtmotDNz/gZa4rb1UKBQJYnYiOAhsMAAoJED/gZa4rb1UKpO4P/RqIjeePf4o9 rcT93UfSPgg+dlJjv1OgCYkURrXHB80h3PKEO9YDCcW6b0Zmzr048eNNGk54d5pflqZClIte IjgV6OcsGrSydickN9rRmXhRbwqcEhLasjJaSyIFwxmadc7aBuiFSJyuvHU4OPBZIx3eArb5 e+vNeNkP14p0yrWUeQ608xn8WgReDyIxwmnMkxoZkwlj9O2+zCyyLo6jKtVCfn4LZpwcwUP9 awQeQqU7WYckzm4fO+2JxmZ0zhIjia3ROdrw00H3V8KbDWcKTL7IWDqoLF/afDRQTMkrDmmY LF6Pgk5Lg/uUo3CBv8EzJXscZ2w6Ttzv0o5lECHMpQvmeitW56/rfQMIZTXhOxrhzi5jXWRz t0M54F9PVmyOX9a5qrlyU28mi1Mgs+uvmjXMFEwg+h8lCrayeOR1nwPMr4FgoHsHU6JyUVxv pIgBF5Q8HpPZuQUEaEz5Bl3uEI3ofI616dCmh42GCHOFvc8bIORwLYaNTs0zGEc4bLVe9cGf i7uJTfshDnL4aKGLbNebV7mUJ1TNEQ8Syx5fWpt/92XECtE9ovSQHCXabTNzGb63Z5HtqOUA TTNmm76rXBSrlvtPv548cMXw4dejA09u1tCFNEyuHzOgT2ZJzEkUY96iNf5ZC+qyOcttgQWV ejdE1EpSVxnHMn0oG8z+dXZZ
Message-ID: <3701e2ee-8fa6-2d4d-d07c-7c172d7de1ef@imt-atlantique.fr>
Date: Wed, 11 Sep 2019 08:39:32 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="------------D640148F729D7F8A04A7CF73"
Content-Language: fr
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/w30PUnwRKwwcB1kemZ5o897Edn4>
Subject: [Cbor] CDDL: how to choose between json and cbor?
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Sep 2019 06:39:38 -0000

Hi,
Sorry for my naive question that probably has already been discussed
but, how to choose between json and cbor within a cddl specification?

Now, I can use cddl to specify the data model for my system.  But I also
have to specify if data/messages instances are coded in json or in cbor.  
Must I specify this in natural language in a documenation elswere
(because this concern is at another level), or is there a mean within
cddl to express the choice cbor vs json?

Best regards
Christophe