specs icon indicating copy to clipboard operation
specs copied to clipboard

Why is the reified form of IPLD Schemas "generally presented as JSON" instead of IPLD itself?

Open tysonzero opened this issue 4 years ago • 1 comments

It seems like IPLD Schemas could be stored and manipulated as IPLD Data Model objects, and serialized into arbitrary codecs (likely DAG-CBOR).

tysonzero avatar Apr 22 '21 09:04 tysonzero

Yerp, you can think of the JSON as DAG-JSON - it's essentially how we think about it. We just don't have a need to represent CIDs or Bytes so in this case JSON == DAG-JSON. But yes, it's intended to be data model compatible and it could just as easily be DAG-CBOR, it's just that it's difficult to read DAG-CBOR so we don't bother presenting it that way.

rvagg avatar Apr 22 '21 09:04 rvagg