helia
    Preparing search index...

    Module @helia/json

    @helia/json makes working with JSON in Helia simple & straightforward.

    See the JSON interface for all available operations.

    import { createHelia } from 'helia'
    import { json } from '@helia/json'
    import { CID } from 'multiformats/cid'

    const helia = await createHelia()
    const j = json(helia)

    const cid = await j.add({
    hello: 'world'
    })
    const obj = await j.get(cid)

    console.info(obj)
    // { hello: 'world' }

    Interfaces

    AddOptions
    GetOptions
    JSON
    JSONComponents

    Functions

    json