pub fn arrs(v: &Value, keys: &[&str]) -> Vec<String>Expand description
What: Extract an array of strings from a JSON object by trying keys in order.
Inputs:
v: JSON value to extract from.keys: Array of candidate keys to try in order.
Output:
- Returns the first found array as
Vec<String>, filtering out non-string elements. - Returns an empty vector if no array of strings is found.
Details:
- Tries keys in the order provided and returns the first array found.
- Filters out non-string elements from the array.