json_out: make json_out_finished finish buffer.