json-ld / cbor-ld-spec

A CBOR-encoding for Linked Data.
https://json-ld.github.io/cbor-ld-spec/
Other
14 stars 4 forks source link

Plain JSON is considered as compressed CBOR-LD #12

Open filip26 opened 2 years ago

filip26 commented 2 years ago

Hi, the specification does not define how to process plain JSON and an encoder following defined algorithms considers plain JSON as compressed CBOR-LD.

Plain JSON could be rejected for encoding or encoded as plain CBOR.

Add after step 2. JSON-LD to CBOR-LD Algorithm

if contextUrls is empty then .... // is not JSON-LD document