Skip to main content

set_pointer

Function set_pointer 

Source
pub fn set_pointer(
    data: &mut Value,
    pointer: &str,
    value: Option<Value>,
) -> Result<(), String>
Expand description

Set (or remove with None) the value at pointer, creating OBJECTS on the way (the TS writePointer); an array takes an index up to its length (length and - append). VAPP-103: refused (data unchanged): a pointer past maxPointerBytes / maxPointerSegments, a non-index token or an index past the end of an array. Iterative: any depth.