Skip to main content

output_json

Function output_json 

Source
pub fn output_json(value: &impl Serialize)
Expand description

Write a JSON-only value to stdout.

Use this for paths that have no human-readable representation (NDJSON streaming, machine-only dry-run plans). Prefer output() with a Render type when both human and JSON representations exist.