JsonHelper Class

Class to provide Json file loading and saving.

Definition

Namespace: Common.Core.Classes
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
public static class JsonHelper
Inheritance
Object    JsonHelper

Methods

DefaultSerializerOptionsGets a default set of Json Serializer options.
DeserializeFileTReads a Json file and populates an object.
DeserializeJsonTReads a Json string and populates an object.
DeserializeListTPopulates a list of objects from a Json string.
ReadAppSettingsReturns a collection of settings from a Json application settings file.
ReadJsonFromFileReads the Json from a file.
SerializeT(T, JsonSerializerOptions)Returns a Json string of the provided object type.
SerializeT(T, String, JsonSerializerOptions)Writes a Json file of the provided object type.

See Also