ss

Function ss 

Source
pub fn ss(v: &Value, keys: &[&str]) -> String
Expand description

What: Extract a string value from a JSON object by key with fallback keys.

Inputs:

  • v: JSON value to extract from.
  • keys: Array of keys to try in order.

Output:

  • Returns the first string value found, or an empty string if none found.

Details:

  • Tries each key in order until one returns a string value.