pub fn params_with_pattern(pattern: &str, max_results: Option<usize>) -> Value
Build JSON params with pattern and max_results.