Using JS, convert: [ "OR", ["<", "a", "b"], [ "AND", ["==", "c", "d"], ["!=", "e", "f"] ] ] // To: a < b OR (c == d AND e != f)