Export JSON to DOCX file in the Cloud

Excel & OpenOffice spreadsheet export with open source Cloud SDK for NodeJS

Exoprt JSON to DOCX file in Cloud SDK for NodeJS

  1. Create an account at Dashboard to get free API quota & authorization details
  2. Initialize CellsApi with Client Id, Client Secret, Base URL & API version
  3. Call cellsWorkbookPutConvertWorkbook method to get the resultant DOCX stream

Get Started with Excel REST API

Get Excel Cloud SDK for .NET source code from GitHub to compile the SDK yourself or head to the Releases for alternative download options.

Also have a look at Swagger-based API Reference to know more about the Excel REST API.

NodeJS Code for JSON to DOCX Conversion

// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-node/
    const { CellsApi, CellsWorkbook_PutConvertWorkbookRequest } = require("asposecellscloud");
    const localPath = "../TestData/source/";
    var fs = require('fs');
    var path = require('path');
    const cellsApi = new CellsApi(process.env.ProductClientId, process.env.ProductClientSecret);
    var req = new CellsWorkbook_PutConvertWorkbookRequest({
      file: fs.createReadStream(localPath + "datasource.xlsx"),
      format: "docx",
    });
    cellsApi.cellsWorkbookPutConvertWorkbook(req)
      .then((result) => {
        console.log(result)
    });

FAQ

  • How can I get started with Aspose. REST APIs?
    Quickstart not only guides through the initialization of Aspose. Cloud API, it also helps in installing the required libraries.
  • Where can I see the release notes for Aspose. Cloud API?
    Complete release notes can be reviewed at Aspose. Cloud Documentation.
  • Is it safe to convert to in the Cloud?
    Of course! Aspose Cloud uses Amazon EC2 cloud servers that guarantee the security and resilience of the service. Please read more about Aspose's Security Practices.
  • What file formats are supported by Aspose. Cloud API?
    Aspose. Cloud can convert to and more. Checkout the complete list of supported file formats.
  • I do not have time to set up. Is there a quick demo for to that I can try?
    Indeed! Checkout the to Conversion App.

Other Options

What is File Format?

What is File Format?