pub fn emit_json(value: &Value, kind: &str) -> ExitCodeExpand description
Serialize a spec-defined JSON value with its established pretty formatting.
On success prints the JSON and returns ExitCode::SUCCESS.
On serialization failure prints an error to stderr and returns exit code 2.