Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

publish_json

Serializes a field inside the data context to a JSON string and stores it at another field. (It writes back into the context; it does not publish to an external system.)

Synopsis

{
  "name": "publish_json",
  "input": {
    "source": "order",
    "target": "order_json",
    "pretty": true
  }
}

Description

publish_json is an engine built-in from dataflow-rs. Orion declares no input schema for it, so a mistake in input surfaces when the task runs rather than when the workflow is saved.

Retry safety: pure. An engine built-in reads and writes the message and nothing else.

Fields

FieldTypeRequiredDefaultDescription
sourcestringyesField under data to serialize, for example "order" (reads data.order)
targetstringyesField under data to receive the serialized string
prettyboolnofalsePretty-print the JSON output

Examples

{ "name": "publish_json", "input": { "source": "order", "target": "order_json", "pretty": true } }

Last verified 14 September 2026