Created
April 6, 2024 17:18
-
-
Save neodigm/313016df4477adb115eef0a74744e7f6 to your computer and use it in GitHub Desktop.
Is it valid JSON test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isJSON( sIn ){ | |
let isVal = false | |
try { isVal = typeof (JSON.parse( sIn )) } catch ( er ) { } | |
return ( isVal == "object" ) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cloudflare UX PWA SolidJS Lit ThreeJS Vue ✨ HTMX WebAssembly