pub fn filter_fields(value: Value, fields: Option<&[String]>) -> Value
Retain only the requested fields from a JSON object. When fields is None or empty, the original value is returned unchanged.
fields
None