get_nested_value_cloned

Function get_nested_value_cloned 

Source
pub fn get_nested_value_cloned(data: &Value, path: &str) -> Option<Value>
Expand description

Clone a value at a nested path

Combines get_nested_value with cloning for convenience.

§Arguments

  • data - The JSON value to read from
  • path - Dot-separated path to the target value

§Returns

  • Option<Value> - Cloned value if found, None otherwise