The following is JSON is generated from the Search Builder Plugin of Datatables and I would like to display the output in the following format using javascript without use of any library.
(Registration=1)OR((Registration=2)OR(Number=3))OR(Number=4)OR(Station=Yes)
var sbfilter = {
"criteria": [
{
"condition": "=",
"data": "Registration",
"value": [
"1"
]
},
{
"criteria": [
{
"condition": "=",
"data": "Registration",
"value": [
"2"
]
},
{
"condition": "=",
"data": "Number",
"value": [
"3"
]
}
],
"logic": "OR"
},
{
"condition": "=",
"data": "Number",
"value": [
"4"
]
},
{
"condition": "=",
"data": "Station",
"value": [
"Yes"
]
}
],
"logic": "OR"
};
(Registration=1)OR((Registration=2)OR(Number=3))OR(Number=4)OR(Station=Yes)? Maybe an example of the output.