User-17257777 posted
Hi robby32,
If configfile is null (or empty), then JObject.Parse() will throw an exception because null is not a valid JSON string.
I think you can use string.IsNullOrEmpty() first to check the value. If it is not null or empty, then use JObject.Parse().
Best Regards,
Jiadong Meng