Fix JSON parse errors with safe parsing utility

- Created safeJSONParse utility function with error handling
- Wrapped all JSON.parse calls in try-catch blocks
- Protected frameworks/index.tsx (9 calls)
- Protected GuestModeContext.tsx (2 calls)
- Protected lib/ai/client.ts (1 call)
- Protected lib/ai-deception-analysis.ts (1 call)
- Added better error logging for debugging

Fixes: JSON Parse error: Unexpected identifier 'object'