Correctly handle json error detection
Added vibration feedback on scan