wrap

Object

Wraps any value inside an object with a named key. Useful for naming a scalar result (like count or sum) before returning it as a structured JSON response.

Syntaxwrap:key?
keyoptionalKey name for the wrapper object. Defaults to "data".

Use cases

All commands