Skip to content

[IDEA] Callable data #132

@gpibarra

Description

@gpibarra

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions