JDoubleOrDefault Method
Returns the Double value of a JSON element, or 0 if the element is nil.
Syntax
Unit: Bcl.Json.Classes
function JDoubleOrDefault(Element: TJElement): Double;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| Element | TJElement | The JSON element to read. May be nil. |
Returns
The Double value from Element.AsDouble, or 0 if Element is nil.