private static void DeserializeModelsFromJson() { tl.LogMessage("DeserializeModelsFromJson", ""); try { string jsonPath = Path.Combine(AssemblyDirectory, "cameramodels.json"); string jsonModels = File.ReadAllText(jsonPath); CameraModel.Models = JsonConvert.DeserializeObject <CameraModel[]>(jsonModels); } catch (Exception e) { tl.LogIssue("DeserializeModelsFromJson", $"Unable to deserialize list of models. Exception: {e.ToString()} "); } }