Detect, fail and notify on invalid JSON.