$path for the array input the result is expected to be a list of property values (multiple tokens).
Mapping all source entity properties:
name of the features:
display property equals true:
id property equals to a dynamic value:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
$path for the array input the result is expected to be a list of property values (multiple tokens).
Mapping all source entity properties:
"product": {
"*": "p"
}
"features": {
"*": "p.features"
}
name of the features:
"tabs": {
"type": "array",
"input": {
"$path": "p.features[*]"
},
"var": "feature",
"items": {
"type": "string",
"value": "{item.name}"
}
}
display property equals true:
"tabs": {
"type": "array",
"input": {
"$path": "p.features[?(@.display==true)]"
},
"var": "feature",
"items": {
"type": "string",
"value": "{item.name}"
}
}
"tabs": {
"type": "array",
"input": {
"$path": "p.features[?(@.display==true)]"
},
"var": "feature",
"items": {
"type": "object",
"feature": {
"*": "{feature}"
}
}
}
id property equals to a dynamic value:
"tabs": {
"type": "array",
"input": {
"$path": "p.features[?(@.id=='{p.primaryFeatureId}')]"
},
"var": "feature",
"items": {
"type": "string",
"value": "{item.name}"
}
}
Was this page helpful?