pub fn params_with_file_function(file: &Path, function: &str) -> Value
Build JSON params with file and function.