Skip to content

appendix_a.json is not I-JSON #2

@hildjj

Description

@hildjj

appendix_a.json is not terribly interoperable; the big integers lose precision when parsed with ECMAscript's JSON.parse(). RFC 7493 specifies a set of interoperability constraints that would be useful here.

If backward-compatibility is desired, a new property code be added. Example:

  {
    "cbor": "O///////////",
    "hex": "3bffffffffffffffff",
    "roundtrip": true,
    "decoded": -18446744073709551616,
    "decoded2": {
       "type": "bigint",
       "value": "-18446744073709551616"
    }
  },

This still wouldn't be I-JSON compliant, but would allow systems that have the constraints noted there to use this without as many gyrations.

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