I am accessing an endpoint and getting JSON back. I loop through the object and I put the value in a double field. Sometimes the filed will be null. How do I handle the null case. Currently my code looks like:

```
double scanning_risk = double.Parse(JSONrecord[i].scanning_risk.ToString());

```

Just FYI. I was able to handle null errors with INT variables using the GetValueOrDefault() function like:

```
int Firm_Id = JSONrecord[i].Firm_Id.GetValueOrDefault();

```

Here is how I am handling strings:

```
string Deleted_At = JSONrecord[i].Deleted_At == null 
                  ? "" 
                  : JSONrecord[i].Deleted_At.ToString();**

```

Is there a similar GetValueOrDefault() function for double or a similar way to handle the case when a double filed is null?

Thank you!