Skip to content

Questions/comments #7

@gkellogg

Description

@gkellogg

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 @type of xsd:integer (TODO full IRI), an if its @value is 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions