Skip to main content

json_get_list

Function json_get_list 

Source
pub fn json_get_list(json: &str, field: &str) -> Option<Vec<String>>
Expand description

Get a field from a JSON object as a list of strings. Each array element is converted to its JSON string representation. Returns None if the field doesn’t exist or isn’t an array.