UNPKG

react-native-security-suite

Version:

Comprehensive security suite for React Native apps - Root/Jailbreak detection, SSL pinning, encryption, secure storage, screenshot protection, and network monitoring

17 lines (15 loc) 264 B
export const isJsonString = (value: string): boolean => { try { JSON.parse(value); } catch (e) { return false; } return true; }; export const jsonParse = (value: string) => { try { return JSON.parse(value); } catch { return {}; } };