Skip to main content

filter_fields

Function filter_fields 

Source
pub fn filter_fields(value: Value, fields: Option<&[String]>) -> Value
Expand description

Retain only the requested fields from a JSON object. When fields is None or empty, the original value is returned unchanged.