Search code examples
javajqueryjsonexpressionmvel

JQuery Querybuilder json parser in java | http://querybuilder.js.org/


I want build a UI to create boolean expressions and for that I am planning to use JQuery querybuilder. This plugin/framework gives me the json data of the query formed in the UI.

I want to parse this json and convert it into boolean expression in Java. The site mentions three parsers that are developed in other programming languages.

  1. .NET castle-it / dynamic-linq-query-builder
  2. PHP fourlabsldn / QBJSParser & QBJSParserBundle
  3. Rails SixiS / jquery_query_builder-rails

I want similar parser in Java that can parse this json data and return a boolean expression as a string and evaluate it using the Java Mvel framework. I searched a lot but could not find any.


Solution

  • I found another JavaScript library that gives the expression.

    https://github.com/gantir/jsexpbuilder

    enter image description here