public async Task WriteFile(string path, QueryResponse <dynamic> data) { var json = JsonConvert.SerializeObject(data, Formatting.Indented); await FileEx.WriteAllTextAsync(path, json); }
public async Task <QueryResponse <dynamic> > ReadFile(string path) { var data = await FileEx.ReadAllTextAsync(path); return(JsonConvert.DeserializeObject <QueryResponse <dynamic> >(data)); }