pub fn ensure_mut_array_field(root: &mut Map<String, Value>, key: &str) -> boolExpand description
Adds an array field to an object if it is absent.
§Parameters
root: Input consumed bycrate::runtime::json_commands::ensure_mut_array_field.key: Input consumed bycrate::runtime::json_commands::ensure_mut_array_field.
§Returns
Returns true when the condition checked by crate::runtime::json_commands::ensure_mut_array_field holds and false otherwise.
§Examples
ⓘ
let _result = pharos_native::runtime::json_commands::ensure_mut_array_field(std::path::Path::new("."), "key");§Related
crate::runtime::json_commandsfor adjacent helpers that share the same runtime surface.