Skip to content

Instantly share code, notes, and snippets.

@groupdocs-cloud-gists
Last active June 3, 2025 20:50
Show Gist options
  • Save groupdocs-cloud-gists/f35896dd1ebeb9032eefb8220f86f225 to your computer and use it in GitHub Desktop.
Save groupdocs-cloud-gists/f35896dd1ebeb9032eefb8220f86f225 to your computer and use it in GitHub Desktop.
Convert CSV to JSON online

Perform CSV to JSON conversion Online


Let's learn the details on how to seamlessly convert a CSV (Comma-Separated Values) files to JSON (JavaScript Object Notation). We are also going to discuss the benefits and ease of CSV to JSON conversion using GroupDocs.Conversion Cloud SDK for Node.js.



For more details, please visit CSV to JSON conversion using Node.js.

csv to json

Important Links

Product Page | Docs | Live Demo | API Reference | Code Samples | Source Code | New Releases | Blog | Free Support | Free Trial

Perform CSV to JSON conversion using Node.js REST API.
const groupdocs = require("groupdocs-conversion-cloud");
const clientId = "YOUR_CLIENT_ID";
const clientSecret = "YOUR_CLIENT_SECRET";
const config = new groupdocs.Configuration(clientId, clientSecret);
const convertApi = new groupdocs.ConvertApi(config);
let convertSettings = new groupdocs.ConvertSettings();
convertSettings.filePath = "input.csv"; // Input CSV file
convertSettings.format = "json"; // Output format
let loadOptions = new groupdocs.CsvLoadOptions();
convertSettings.loadOptions = loadOptions;
convertSettings.outputPath = "output/ConversionFile.json"; // Output file path
let request = new groupdocs.ConvertDocumentRequest(convertSettings);
convertApi.convertDocument(request)
.then(response => {
console.log("CSV successfully converted to JSON:", response);
})
.catch(err => {
console.error("Conversion failed:", err);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment