JSON

module:JSON

Source:

Expose JSON.

Members

module:JSON

Source:

Expose JSON.

(inner) Base

Source:

Module dependencies.

Methods

(inner) clean(test) → {Object}

Source:

Return a plain-object representation of test
free of cyclic properties etc.

Parameters:
NameTypeDescription
testObject
Returns:
Type
Object

(inner) cleanCycles(obj) → {Object}

Source:

Replaces any circular references inside obj with '[object Object]'

Parameters:
NameTypeDescription
objObject
Returns:
Type
Object

(inner) errorJSON(err) → {Object}

Source:

Transform an Error object into a JSON object.

Parameters:
NameTypeDescription
errError
Returns:
Type
Object