This JSON object holds property values for properties named "Source" and "Destination".
Your custom code can de-serialize this information into a C# object like so:
// MyConfig class is defined as such
class MyConfig
{
public string Source { get; set; }
public string Destination { get; set; }
}
public override void Run()
{
// Loading the config object from config.json
var myConfig = LoadConfig<MyConfig>();
// Read the values
LogMessage(myConfig.Source) // C:\Source
LogMessage(myConfig.Destination) // C:\Destination
}
CODE
Remarks
The type passed to the LoadConfig method can be as primitive or as complex as needed, provided the JSON data inside config.json can successfully deserialize to the destination type.
JavaScript errors detected
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.