// For complete examples and data files, please go to 
https://github.com/aspose-cells-cloud/aspose-cells-cloud-dotnet/

// Get client credentials from https://dashboard.aspose.cloud/
string clientSecret = "4d84d5f6584160cbd91dba1fe145db14";
string clientID = "bb959721-5780-4be6-be35-ff5c3a6aa4a2";

// create CellsApi instance while passing ClientID and ClientSecret
CellsApi cellsInstance = new CellsApi(clientID, clientSecret);

try
{
    // read input JSON file
    using (var inputFile = System.IO.File.OpenRead(input_json))
    {
        // upload the JSON file to cloud storage
        cellsInstance.UploadFile("input.json", inputFile);

        // call the API to convert JSON file to XML format
        var response = cellsInstance.CellsWorkbookGetWorkbook(input_csv,null, format: "XML", null, null, null, null, "myResultant.xml", null,null);

        // print success message if the conversion is successful
        if (response != null && response.Equals("OK"))
        {
           Console.WriteLine("The JSON to XML conversion completed successfully !");
           Console.ReadKey();
        }
    }
}
catch (Exception ex)
{
    Console.WriteLine("error:" + ex.Message + "\n" + ex.StackTrace);
}