output json results for reporting, support loop testing without lib