I am using Devextreme control for filter builder, in this example https://js.devexpress.com/Demos/WidgetsGallery/Demo/FilterBuilder/WithDataGrid/jQuery/Light/
we have filter like
var filter = [
["Product_Current_Inventory", "<>", 0],
"or",
[
["Product_Name", "contains", "HD"],
"and",
["Product_Cost", "<", 200]
]
]
I wanted to covert this to JSON, considering it could be a big filters also into new format like
JSON.stringify. What is the problem with that? Are you sure your question is about JSON? Or is it about a JavaScript object? Too many people seem to mix up the two concepts.