Found a mistake in how the JSON was error checking.