public static async Task <FileMetadata> WriteJsonAsync <T>(this DropboxClient client, string path, T obj, Encoding encoding = null) { var text = Json.Serialize(obj); return(await client.WriteTextAsync(path, text, encoding)); }