isValidJSON
Checks if the provided string is a valid JSON.
- Use
JSON.parse()
and atry... catch
block to check if the provided string is a valid JSON.
Checks if the provided string is a valid JSON.
JSON.parse()
and a try... catch
block to check if the provided string is a valid JSON.