Re:JsonLogic – Build complex rules, serialize them as JSON
by sriram_iyengar on Monday October 24, 2016 @10:17PM
(#12784741)
interesting - but why would i use jsonlogic instead of javascript ?
[ Parent
| on HN ]
Re:JsonLogic – Build complex rules, serialize them as JSON
by thom_nic on Monday October 24, 2016 @10:23PM
(#12784775)
Allowing user-defined rules comes to mind. AFAIK `eval()`-ing user input is can't be done in a safe way. Probably OK on browser but not on the server.
Re:JsonLogic – Build complex rules, serialize them as JSON
by flushot on Tuesday October 25, 2016 @01:05AM
(#12785436)
I don't see why a language like JS couldn't be used for evaluating rules when sandboxed. Looks like there's a project that does just that: https://developers.google.com/caja/