pub fn delete_from_config_array(
config_json: &str,
section: &str,
field: &str,
value: &str,
) -> Result<String>Expand description
Delete item from config array by field value
§Arguments
config_json- JSON configuration stringsection- Section name (e.g., “CFG_DSRC”, “CFG_ATTR”)field- Field name to match (e.g., “DSRC_CODE”, “ATTR_CODE”)value- Value to match for deletion
§Returns
Modified configuration JSON string
§Errors
JsonParseif config_json is invalidMissingSectionif section doesn’t existNotFoundif no item matches the criteria