pub fn find_in_config_array(
config_json: &str,
section: &str,
field: &str,
value: &str,
) -> Result<Option<Value>>Expand description
Find item in config array by field value (returns owned 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
§Returns
Cloned item if found, None otherwise
§Errors
JsonParseif config_json is invalid