pub fn write_json(results: &Results, pretty: bool, out: &mut Sink) -> Result<()>
Writes the results as JSON (compact or indented), followed by a newline.
DimaError::Internal for non-finite values; write errors of out.
DimaError::Internal
out