Forum Discussion

snowamigo's avatar
snowamigo
New Contributor
5 years ago
Solved

How to read the value from an array using expression builder and return true or false

My initial JSON looked like below "customFields": { "textCustomFields": [ { "fieldId": "10546710413", "name": "templateUsageRestriction", "show": "false", ...
  • bojanvelevski's avatar
    5 years ago

    Hello @snowamigo,

    If you use this expression below, you will get true/false on the target path, respectively where the value of name is ‘_source’ and value of ‘value’ is ‘ERM’.

    .map(x=> x.name == ‘_source’ && x.value == ‘ERM’)

    If that is what you were aiming at. If not, please send more details on the output.

    Best regards,

    Bojan Velevski