Skip to main content

Namespace: object

utils.object

Functions

decodeJSON

decodeJSON<T>(jsonByte): T

Type parameters

Name
T

Parameters

NameType
jsonByteBuffer

Returns

T

Defined in

packages/klayr-decentralized-identifier/src/utils/object.ts:9


encodeJSON

encodeJSON(json): Buffer

Parameters

NameType
jsonRecord<string, any>

Returns

Buffer

Defined in

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


serializer

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

Type parameters

Name
T

Parameters

NameType
dataRecord<any, any>

Returns

JSONObject<T>

Defined in

packages/klayr-decentralized-identifier/src/utils/object.ts:13