I am trying to pass a json string to a C#-Program using Commandline.
The JSON-String looks like this:
{
\"config\": {
\"script\": {
Instead of looking at the "string[] args" you could use Environment.CommandLine
.
From MSDN https://msdn.microsoft.com/en-us/library/system.environment.commandline.aspx
public static void Main()
{
Console.WriteLine();
// Invoke this sample with an arbitrary set of command line arguments.
Console.WriteLine("CommandLine: {0}", Environment.CommandLine);
}
// The example displays output like the following:
// C:>env0 ARBITRARY TEXT
//
// CommandLine: env0 ARBITRARY TEXT