echo

Sources

Injects a literal JSON value into the pipeline. The argument is parsed as JSON; if parsing fails it is treated as a plain string. Use this to test pipeline logic without needing an external API.

Syntaxecho:value
valueAny valid JSON value: array, object, number, or string

Use cases

Use caseDescriptionURL
Sort literal numbersTest sort order against a known set of numbers without an external call.https://httpip.es/api/pipe/echo:[5,3,1,4,2]|sort
Filter hardcoded recordsValidate filter logic against a controlled dataset before wiring up a real API.https://httpip.es/api/pipe/echo:[{"role":"admin"},{"role":"viewer"},{"role":"admin"}]|filter:role,eq,admin
Count items in a listQuickly count how many elements are in a literal array.https://httpip.es/api/pipe/echo:["alpha","beta","gamma","delta"]|count
Wrap a scalar valueTurn a bare string into a named JSON object using wrap.https://httpip.es/api/pipe/echo:hello|wrap:message
Deduplicate a listRemove duplicate values from a known list to verify distinct logic.https://httpip.es/api/pipe/echo:["js","python","js","go","python"]|distinct|sort

All commands