Convert XLSX to JSON in C#

JSON is a popular format to exchange data within or between applications. The lightweight JSON files make it possible for you to store and process small or large sized data easily. On the other hand, Excel XLSX files are commonly used to keep and share the data. However, in certain cases, you may need to convert Excel data to JSON in C# from within .NET applications. To achieve that, this article covers how to convert XLSX to JSON programmatically in C#.

Einfache Schritte zum Konvertieren von XLSX zu JSON in C#

To convert the XLSX files to JSON format in C#, we will use Aspose.Cells JSON Converter für .NET. Die Bibliothek verbergt die komplexen Konvertierungsverfahren und ermöglicht es Ihnen, XLSX-Dateien in JSON-Format innerhalb von ein paar Schritten zu konvertieren.

  • Laden Sie die XLSX-Datei vom Disk herunter.
  • Speichern Sie es in JSON-Format auf die gewünschte Lage.

Der folgende Abschnitt zeigt, wie Sie Aspose.Cells für .NET herunterladen oder installieren können.

C# XLSX zu JSON Export Library – Kostenlos herunterladen

Aspose.Cells JSON Converter für .NET is a high-speed and powerful library to create and process Excel files seamlessly. In addition, it provides a high fidelity converter for back and forth conversion of XLSX files. You can download its DLL from the Downloads section or install it from NuGet.

PM> Install-Package Aspose.Cells

Konvertieren XLSX in JSON in C#

In der XLSX-to-JSON-Konvertierung konvertiert Aspose.Cells für .NET jede Reihe des Arbeitsblattes in ein Objekt von JSON#.

  • Load the XLSX file using Arbeitsbuch class by specifying its path.
  • Save the XLSX file into JSON format using Workbook.Save method.

The following code sample shows how to perform XLSX to JSON export in C#.

C# Bibliothek für XLSX zu JSON Export - Erhalten Sie eine kostenlose Lizenz

You can get a Kostenlose vorübergehende Lizenz to use all the features of Aspose.Cells for .NET without any limitations.

Schlussfolgerungen

In this article, you have learned how to convert XLSX files to JSON format programmatically in C#. You can simply install Aspose.Cells for .NET into your applications and perform XLSX to JSON export in C# within a couple of steps. Furthermore, you may go through the Dokumentation of Aspose.Cells for .NET to explore other features. In case you would have any queries, please feel free to contact us at the Forum.