Skip to content

Initial release

Latest
Compare
Choose a tag to compare
@kannangce kannangce released this 16 Sep 18:05

Evaluator with below spec,

  • Each JSON will either be an operator or a data.
  • The JSON is an operator, if the first key is one of the configured strings.
  • Each operator will have to be resolved to a function with the value of it will be passed as a parameter for the function.
  • When a JSON is not an operator, it represents a normal JSON.
  • The execution has to happen in a nested manner. For example, if an operator has another operator as a parameter, the inner one needs to be executed first.
  • The DSL has to be converted to the code first and then the execution has to happen on an explicit call.
  • The response of the DSL will be the execution result of the JSON.
  • When the DSL is a list and if JSON is an operator, the result will be a list with the evaluated results.
  • When the JSON is not an operator, it will be returned as is.