serialize result.