JsonInspector.has

Check if component has a field or a property.

class JsonInspector
const nothrow
bool
has
(
JSONValue component
,
in string property
)

Parameters

component JSONValue

component with fields

property string

component property that is tested for existence

Return Value

Type: bool

true if field is present either in readonly, or writeonly form (has getters and setters).

Meta