Info
Version: | 1.0.1 |
Author(s): | Mauricio Junior |
Last Update: | Tuesday, December 22, 2020 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://www.mauriciojunior.net/ |
NuGet Url: | https://www.nuget.org/packages/ExcelToJsonLibrary |
Install
Install-Package ExcelToJsonLibrary
dotnet add package ExcelToJsonLibrary
paket add ExcelToJsonLibrary
ExcelToJsonLibrary Download (Unzip the "nupkg" after downloading)
Dependencies
- Newtonsoft.Json(>= 12.0.3)
- RestSharp(>= 106.11.7)
- ServiceStack.Text(>= 5.10.2)
- System.Data.OleDb(>= 5.0.0)
Tags
Send the spreadsheet and get the json with columns and values
Code:
static void Main(string[] args)
{
var path = @"C:\Data.xlsx";
var excel = new ExcelToJsonLibrary.ExcelToJson();
var result = excel.GetJson(path, "Sheet1");
Console.WriteLine(result);
Console.ReadLine();
}
C# .NET
Visual Studio.