Techies
Thursday, January 30, 2020
Validate given string is JSON
function isJson(str) { try { JSON.parse(str); } catch (e) { return false; } return true; }
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment