also serialize the error value into results.json