pub fn extract_structured_output(stdout: &str) -> (Option<Value>, String)Available on crate feature
code only.Expand description
Extract structured JSON output from stdout.
The harness prints the JSON output as the last line of stdout. This function
tries to parse the last non-empty line as JSON. If successful, it returns
the parsed value and the remaining stdout (everything before the last line).
If parsing fails, it returns None and the full stdout.