PP.setValueToJSON

Syntax

setValueToJSON(value, settings: Object, path: String, justReturn: Boolean);

Parameters

value. Value to set for the specified property.

settings. Initial object.

path. Path to the specified property.

justReturn. Indicates if the current object is returned. If this parameter is True, the method returns the current object, otherwise nothing is returned. This is an optional parameter, by default its value is not defined.

Description

The setValueToJSON method sets property value for object with any nesting level relative to the initial object.

Comments

If a property is not available at the path to the specified field, the method creates it.

Example

The example of use is given in the with description of the static method PP.getProperty.

See also:

PP