Open vcharpenay opened 4 years ago
Example:
{
"@value": "2019-01-17T10:38:33Z",
"@type": "xsd:dateTime"
}
would be encoded as a CBOR map with 2 key/value pairs while it could also be encoded as the positive integer 1579257513
tagged item with semantic tag 1
(POSIX timestamp).
CBOR has a range of datatypes that subsumes that of JSON. Datatype declarations in a JSON-LD context can be leveraged to optimize serialization of typed literals.