From 8246cebce08859f5c58165bdf6ee453db84b32db Mon Sep 17 00:00:00 2001
From: Pierre-Antoine Champin The
strings,
numbers (xsd:double),
maps
- (mapping strings to values in the value space where the order of map entries is not significant),
+ mapping strings to values in the value space where the key-value pairs are ordered by key (using Unicode code points order),
lists
- (of values in the value space), and
+ of values in the value space, and
literal values (`true`, `false`, and `null`)
from [[[INFRA]]] [[INFRA]] and [[[XMLSCHEMA11-2]]] [[XMLSCHEMA11-2]].
@@ -1853,37 +1853,7 @@ rdf:JSON
DatatypeThe
and lists does not include values having themselves as members,
which cannot be represented in JSON.rdf:JSON
Datatype
Two values (|a| and |b|) are considered equal if any of the following are true: -
Two values are considered equal if and only if they are the same element of the value space.
rdf:JSON
Datatyperdf:JSON
Datatype
+ The constraint to order map entries in the value space is only meant to make the order of object-member the lexical space irrelevant. In other word, it ensures that both lexical values {"a": "b", "c": "d"}
and {"c": "d", "a": "b"}
are mapped to the same element of the value space. Implementations may omit to sort the entries, as long as they treat the maps in the value space as unordered.
+
The issue refers to the use
of ordered map
from [[INFRA]] for describing the value space of JSON Objects
From 215a18e1792aadb67d1b414a2148afa49fa27067 Mon Sep 17 00:00:00 2001
From: Pierre-Antoine Champin The
strings,
numbers (xsd:double),
maps
- mapping strings to values in the value space where the key-value pairs are ordered by key (using Unicode code points order),
+ mapping strings to values in the value space where the key-value pairs are ordered by key (using Unicode code point order),
lists
of values in the value space, and
literal values (`true`, `false`, and `null`)
@@ -1870,7 +1870,7 @@ rdf:JSON
DatatypeThe
with the key taken from the member name and
value taken by performing this mapping
to the member value,
- and sorting the entryes by key ()
+ and sorting the entries by key ()
(using Unicode code points order).
rdf:JSON
Datatype
rdf:JSON
DatatypeThe value space of maps +
The value space of finite unordered maps and lists does not include values having themselves as members, which cannot be represented in JSON.
@@ -1860,18 +1860,16 @@rdf:JSON
Datatyperdf:JSON
Datatype
- The constraint to order map entries in the value space is only meant to make the order of object-member the lexical space irrelevant. In other word, it ensures that both lexical values {"a": "b", "c": "d"}
and {"c": "d", "a": "b"}
are mapped to the same element of the value space. Implementations may omit to sort the entries, as long as they treat the maps in the value space as unordered.
+ The finite unordered maps can be implemented with ordered maps [[INFRA]]
+ by systematically sorting key-value pairs by key (using Unicode code point order).
+ This ensures that lexical forms that differ only in the order of object members are mapped to the same element of the value space
+ (e.g. {"a": "b", "c": "d"}
and {"c": "d", "a": "b"}
).
The issue refers to the use - of ordered map - from [[INFRA]] for describing the value space of JSON Objects - and suggests defining a new datatype for unordered maps.
From 670191f4608d572f9bfbb445b60325785e98b864 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Champinrdf:JSON
Datatype
The finite unordered maps can be implemented with ordered maps [[INFRA]]
by systematically sorting key-value pairs by key (using Unicode code point order).
- This ensures that lexical forms that differ only in the order of object members are mapped to the same element of the value space
- (e.g. {"a": "b", "c": "d"}
and {"c": "d", "a": "b"}
).
+ This ensures that lexical forms that differ only in the order of object members (e.g., {"a": "b", "c": "d"}
and {"c": "d", "a": "b"}
) are mapped to the same value.