using Newtonsoft.Json; using System.Collections.Generic; namespace Typhoon.Excel2Json.Export { /// /// json导出类 /// public class JsonExporter { public const string ALL_IN_ONE_JSON_NAME = "allInOne"; //创建导出数据 public Dictionary CreateExportDatabase(AllTables all) { var result = new Dictionary(); result[ALL_IN_ONE_JSON_NAME] = JsonConvert.SerializeObject(all); $CREATE_EXPORT_DATABASE_METHOD_CONTENT return result; } } }