Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 587 Bytes

DAG-JSON.md

File metadata and controls

27 lines (17 loc) · 587 Bytes

Specification: DAG-JSON

Status: Descriptive - Final

DAG-JSON supports the full IPLD Data Model.

Format

Simple Types

All simple types except binary are supported natively by JSON.

Contrary to popular belief, JSON as a format supports Big Integers. It's only JavaScript itself that has trouble with them. This means JS implementations of dag-json can't use the native JSON parser and serializer.

Binary Type

{"/": { "base64": String }}

Link Type

{"/": String /* base encoded CID */}