Track invalids, catch JSON errors