Glass is a minimalist scripting language to allow you to safely evaluate path expressions and small programs that may contain untrusted code.

Glass is very similar to JSON Path but it adds the ability to evaluate locally defined functions, execute multiple statements including variable declarations and conditional branches.

There are no for loops and scripts can only call functions or reference properties that are defined directly on the context object.

When using a simple JSON tree as the context Glass Scripts are designed to be inherently safe to evaluate without any possibility of external side effects, and no ability to block the thread since there are no for or while loops.