Skip to main content

Namespace: object

did.utils.object

Functions

decodeJSON

decodeJSON<T>(jsonByte): T

Type parameters

Name
T

Parameters

NameType
jsonByteBuffer

Returns

T

Defined in

packages/klayr-decentralized-identifier/dist/utils/object.d.ts:4


encodeJSON

encodeJSON(json): Buffer

Parameters

NameType
jsonRecord<string, any>

Returns

Buffer

Defined in

packages/klayr-decentralized-identifier/dist/utils/object.d.ts:3


serializer

serializer<T>(data): JSONObject<T>

Type parameters

Name
T

Parameters

NameType
dataRecord<any, any>

Returns

JSONObject<T>

Defined in

packages/klayr-decentralized-identifier/dist/utils/object.d.ts:5