add json format to rows_totals