Skip to content

jsonLogic support for array operations like "some" #634

Answered by jakeboone02
nicopadu asked this question in Q&A
Discussion options

You must be logged in to vote

Your guess about this not being present at the moment of JsonLogic support implementation is correct.

I'm pretty sure we could do this, with some caveats. One of those caveats would be that the reverse operation (formatQuery(query, 'jsonlogic')) would almost certainly not yield the same "some"/"all"/"none" rule that parseJsonLogic would have parsed, at least by default. The workaround would be to use a custom rule parser and probably a custom rule formatter as well.

Let me see what I can come up with. I'll create an issue from this discussion and track it there (edit: see #635).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nicopadu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants