I have JSON with conditional operators like:
{
"or": [
{
"and": [
{
"ge": [
"A",
10
]
},
{
"eq": [
"B",
20
]
}
]
},
{
"lt": [
"C",
30
]
},
{
"ne": [
"D",
50
]
},
{
"and": []
},
{
"or": []
}
]
}
I want to parse the JSON and convert to elasticsearch querying language. But I should be able de-serialize the input JSON first. what is the better way to do it. Using recursive?? If I should use recursive methods what would be the code snippet to build a recursive method.