News for hackers. Stuff that matters.
Re:JsonLogic – Build complex rules, serialize them as JSON by hvidgaard on Tuesday October 25, 2016 @02:13AM (#12785703)
A DSL is fine, encouraged even, for solving specific problems. JsonLogic however seems like a general tool looking for a job, but I maybe I just haven't seen its usecase yet.

It looks as a way to move business rules entirely to the backend, but still have the frontend executing them. I can see the value in that if you desperately need to reduce the load on your backend.

Re:JsonLogic – Build complex rules, serialize them as JSON by GuiA on Tuesday October 25, 2016 @04:11AM (#12786097)
> JsonLogic however seems like a general tool looking for a job

From the looks of it, I agree. It feels like an AST serialization format in JSON, but it's unclear whether it's optimized for any specific use cases or merely a toy implementation.

Re:JsonLogic – Build complex rules, serialize them as JSON by softawre on Tuesday October 25, 2016 @10:43AM (#12788404)
Javascript is the way we execute the same rules on the front/back.
Re:JsonLogic – Build complex rules, serialize them as JSON by pmontra on Tuesday October 25, 2016 @11:54AM (#12788973)
Or any language that runs in the backend and compiles to JS for the frontend. Rxample: if you have a Rails backend you might consider to use Opal for the code shared between the server and the browser. This JSON logic would be there.