We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to export Excel data to JSON format?

Platform: WinForms |
Control: XlsIO |
Published Date: August 6, 2018 |
Last Revised Date: September 28, 2018

Syncfusion Essential XlsIO is a .NET Excel library used to create, read, and edit Excel documents. Using this library, you can start importing Excel data to JSON format through Export to CLR Objects feature in C# and VB.NET.


JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is a text format that is completely language independent and easy for users to understand, read and write. Data in the worksheet can be exported to JSON format.


Essential XlsIO supports exporting worksheet data to CLR objects using Export to CLR Objects feature which then serialized to JSON format.


Steps to export Excel worksheet to JSON format programmatically:


  1. Create a new C# console application project.


Create new empty console application in visual studio


  1.                     Install the Syncfusion.XlsIO.WinForms NuGet package as reference to your .NET Framework application from NuGet.Org.                



Add XlsIO reference to the project



  1. Include the following namespace in the program.cs file.




  1. Use the following code snippet to export worksheet data to JSON format.





  1. Create Customer class with required properties.




A complete working example to export Excel data to JSON format can be downloaded from Export-Excel-data-to-JSON-format.zip.


By executing the program, you will get the output as follows.


Export Excel data to JSON format


Know more about Essential XlsIO through the documentation, where you can find supported features like importing and exporting in DataTable, appending multiple records to worksheet using Template Markers, exporting worksheet into CLR Objects etc., with respective code examples.


Refer here to explore the rich set of Syncfusion Essential XlsIO features.


An online sample link to Export Data to CLR Objects



Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, include a license key in your projects. Refer to link to learn about generating and registering Syncfusion license key in your application to use the components without trail message.

You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon