I have a string like below which can grow further with few more AND/OR/NOT condition but maintains the syntax.
String string = "apple,mango,name(
AND(
OR(
gender[male,female],
county[USA,India]
),
language[spanish,english],
education[masters,bachelors],
NOT(
education[Phd]
)
)
),orange"
Need to parse this string. partially successful to convert this string as JSON object. But couldn't do it completely.