onezeronull.com
Check for valid JSON object or string
I was looking for a JavaScript code that will check, if passed variable is a valid JSON, no matter, if it is an object or string. I failed with that, because I only found separate solutions for eit…