-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Numbers without a fractional part (integer numbers) are serialized as CBOR integers (major types 0 and 1), choosing the shortest form.
Would 1.1e1 be represented as 11? Presumably, as JSON just has a single numeric type. But, there are some JSON Canonicalization considerations that might apply (e.g., big integers)
Also, numbers without a fractional part, but with a negative exponent, or positive exponent greater than 20.
If the object is a value object with a
@typeofxsd:integer(TODO full IRI), an if its@valueis a valid decimal representation of an integer, then the object is serialized as a CBOR integer (major type 0 or 1) choosing the shortest form.
Where the @value is a string which has the canonical form of an xsd:integer? If we loose the value object, then we're not going to be able to round-trip.
What about date and type? A lot of JSON data likely represents dates or dateTime. Should this be supported in transformation? (base64Binary sort of opens the door).