I am parsing a Json
document using Json.NET and creating an ArrayList
using a Collection Initializer
as follows
var array = new ArrayList
{
inputJson["abc"].ToString(),
inputJson["def"].Value<float>(),
inputJson["ghi"].Value<float>()
};
Now I would like to add a null check so it doesn't throw an exception if one of the properties is missing in the Json document.
Thanks