v1.6.4
Changelog
New Features
-
JSONPath-style
$.pathtemplate support:field_exprnow supports mixing Lua functions with$.pathJSON path references. Before Lua execution, the system safely substitutes each$.pathexpression based on its runtime type: numbers and booleans are inlined as literals, strings are automatically quoted and escaped, and missing paths resolve tonil.Example:
return "Balance: " .. string.format("%.2f", $.data.wallets[0].balance)If $.data.wallets[0].balance resolves to the number 100.5, the substituted code becomes:
return "Balance: " .. string.format("%.2f", 100.5)Bug Fixes
- Fix
field_exprpath extraction: non-path characters (),:, etc.) now correctly terminate$.pathreferences - Fix Lua 5.4 return value handling: function calls used as statements no longer discard return values in
script_execwrapper
Full Changelog: v1.6.3...v1.6.4