JavaScript API Reference#

jsonloads#

jsonloads(obj)

Loads a new object loaded from the JSON passed in obj.

Parameters

Name

Type

Description

obj

JSON string

A string containing JSON data.


Returns

Type

Description

obj

The Object that the JSON decoded to.

jsondumps#

jsondumps(obj)

Returns the JSON string for an object.

Parameters

Name

Type

Description

obj

{}

An object to be converted into a JSON string.


Returns

Type

Description

JSON string

The JSON string of obj.

dimebloads#

dimebloads(bytes)

Parameters

Name

Type

Description

bytes

bytes[]

An array of bytes.


Returns

Type

Description

Object

The object that the bytes decoded to.

dimebdumps#

dimebdumps(obj)

Returns the bytes of obj.

Parameters

Name

Type

Description

obj

Object

An object.


Returns

Type

Description

bytes[]

An array of the bytes making up obj.