%dw 2.0
import * from dw::util::Tree
output application/json
---
{
a: isObjectType([{kind: OBJECT_TYPE, selector: "user", namespace: null},
{kind: ATTRIBUTE_TYPE, selector: "name", namespace: null}]),
b: isObjectType([{kind: OBJECT_TYPE, selector: "user", namespace: null},
{kind: OBJECT_TYPE, selector: "name", namespace: null}]),
c: isObjectType([{kind: OBJECT_TYPE, selector: "user", namespace: null}])
}
DataWeave
isObjectType
isObjectType(path: Path): Boolean
Returns true
if the provided Path
value is an OBJECT_TYPE
expression.
Introduced in DataWeave version 2.4.0.
Parameters
Name | Description |
---|---|
|
The |
Example
This example shows how isObjectType
behaves with different inputs.
Source
Output
{
"a": false,
"b": true,
"c": true
}
Json