From 64c827da0000633a012d402cf0bbdabdc4c7a9f5 Mon Sep 17 00:00:00 2001 From: Edgar Bonet Date: Wed, 15 May 2019 11:59:13 +0200 Subject: [PATCH] Clarify the semantics of the "char" type There is no such thing as a "character" in the JSON data model. An UBJSON "character" is really meant to represent a string. --- spec12/value-types.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec12/value-types.html b/spec12/value-types.html index bf1ee33..a91269b 100644 --- a/spec12/value-types.html +++ b/spec12/value-types.html @@ -415,7 +415,7 @@

Usage

[box type="note"]The char type is synonymous with 1-byte, UTF8 encoded value (decimal values 0-127). A char value must not have a decimal value larger than 127.[/box] -The char type is functionally identical to the uint8 type, but semantically is meant to represent a character and not a numeric value. +The char type is functionally identical to the uint8 type, but semantically is meant to represent a string consisting of a single ASCII character, not a numeric value.

Example

JSON snippet:
{