Hi,
How to convert below JSON into regular expression using JSON Parse?
JSON Input:
{
"field":null,
"operator":null,
"value":null,
"combinator":"or",
"not":false,
"rules":[
{
"field":"MonthCount",
"operator":">=",
"value":"2",
"combinator":null,
"not":false,
"rules":null
},
{
"field":"StatusCode",
"operator":"=",
"value":"8",
"combinator":null,
"not":false,
"rules":null
},
{
"field":"Indicator",
"operator":"=",
"value":"Y",
"combinator":null,
"not":false,
"rules":null
},
{
"field":"Date",
"operator":"is not null",
"value":null,
"combinator":null,
"not":false,
"rules":null
},
{
"field":null,
"operator":null,
"value":null,
"combinator":"and",
"not":false,
"rules":[
{
"field":"lien",
"operator":"=",
"value":"true",
"combinator":null,
"not":false,
"rules":null
},
{
"field":"derivedCount",
"operator":">=",
"value":"2",
"combinator":null,
"not":false,
"rules":null
}
]
}
]
}
Out put:
((MonthCount >= 2) OR (StatusCode = 8 OR (Indicator = "Y") OR (Date is not null) OR ((lien = true) AND (derivedCount >= 2)))
Thanks,
Mark