fixing basic counters json serializer