Build complex rules, serialize them as JSON, share them between front-end and back-end Why use JsonLogic? If you’re looking for a way to share logic between front-end and back-end code, and even store it in a database, JsonLogic might be a fit for you. JsonLogic isn’t a full programming language. It’s a small, safe way to delegate one decision. You could store a rule in a database to decide later.