diff --git a/spec/index.html b/spec/index.html index 7b4a369..8387ad5 100644 --- a/spec/index.html +++ b/spec/index.html @@ -1842,65 +1842,34 @@
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.
-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
DatatypeThe 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.
+
+ 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 (e.g., {"a": "b", "c": "d"}
and {"c": "d", "a": "b"}
) are mapped to the same value.
+