Class JsonUtil
Helper utilities for reading and writing JSON files.
public static class JsonUtil
- Inheritance
-
JsonUtil
- Inherited Members
Methods
WritePartialJson<TConfig>(string, string, TConfig)
Writes a config object into a named section of a JSON file; merges when file exists and overwrites the same section name.
public static void WritePartialJson<TConfig>(string filePath, string configName, TConfig config)
Parameters
filePath
stringJSON file path
configName
stringSection name to write
config
TConfigSection object to write
Type Parameters
TConfig
Type of the config object