Instead of passing all the data as parameters, sometimes it is necessary to calculate it on the fly, e.g.
jsonLogic.apply({ "var": ["my_input"] }, function (name, default value) {
return $('input[name="'+name+'"]')?.val();
});
See master...gpibarra:json-logic-js:callable_data
Also, in php it may make sense to query the database and only bring back the necessary data and not the entire data set.
See jwadhams/json-logic-php@master...gpibarra:json-logic-php:callable_data
how about?
I could make a PR of those repos (Javascript and PHP) but we had to see if it can be replicated in other languages (Python, Java, etc.)
Instead of passing all the data as parameters, sometimes it is necessary to calculate it on the fly, e.g.
See master...gpibarra:json-logic-js:callable_data
Also, in php it may make sense to query the database and only bring back the necessary data and not the entire data set.
See jwadhams/json-logic-php@master...gpibarra:json-logic-php:callable_data
how about?
I could make a PR of those repos (Javascript and PHP) but we had to see if it can be replicated in other languages (Python, Java, etc.)