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