Link Search Menu Expand Document

Export To JSON - C#

Spreadsheet SDK sample in C# demonstrating ‘Export To JSON’

using System.Diagnostics;
using System.IO;
using Bytescout.Spreadsheet;

namespace ExportToJSON
    class Program
        static void Main(string[] args)
            using (Spreadsheet spreadsheet = new Spreadsheet())
            	// Load document
                // Export first worksheet to JSON format
                string jsonString = spreadsheet.ExportToJSON(0);
                // Write JSON string to file
                File.WriteAllText("exported.json.txt", jsonString);

				// Open the result file in default associated application

Download Source Code (.zip)

Return to the previous page Explore Spreadsheet SDK