set_value Method
Sets a new value for the element specified by XPath.
Syntax
def set_value(value: str, value_type: int) -> None: ...
Remarks
This method sets a new value for the element specified in x_path. This is used to modify an existing JSON document.
Value specifies the new value.
ValueType specifies the type of the value. Possible values are:
- 0 (Object)
- 1 (Array)
- 2 (String)
- 3 (Number)
- 4 (Bool)
- 5 (Null)
- 6 (Raw)
See save for details.