4eb6c69af9
- Read response.text() before JSON.parse to avoid double serialization - Use text.slice(0, 500) instead of JSON.stringify(json).slice(0, 500) - Add typeof content !== 'string' check for stronger type validation - Add explicit JSON parse error handling with try/catch