Handle JSON ValueError when reading received data.