Skip to main content

parse_filters_json

Function parse_filters_json 

Source
pub fn parse_filters_json(s: &str) -> Result<Vec<Value>>
Expand description

Parses a filters JSON string into a list of {field, op, value} objects.

Accepts a JSON array or a single object.

ยงErrors

Returns TvscreenerError::InvalidRequest when the JSON is invalid or the wrong shape.