return counters as json and pull invalid counter into the counters array