@helia/json makes working with JSON in Helia simple & straightforward.
@helia/json
See the JSON interface for all available operations.
import { createHelia } from 'helia'import { json } from '@helia/json'import { CID } from 'multiformats/cid'const j = json(helia)const cid = await j.put({ hello: 'world'})const obj = await j.get(cid)console.info(obj)// { hello: 'world' } Copy
import { createHelia } from 'helia'import { json } from '@helia/json'import { CID } from 'multiformats/cid'const j = json(helia)const cid = await j.put({ hello: 'world'})const obj = await j.get(cid)console.info(obj)// { hello: 'world' }
Generated using TypeDoc
@helia/json
makes working with JSON in Helia simple & straightforward.See the JSON interface for all available operations.
Example