How to test if a string is JSON or not? How to test if a string is JSON or not? javascript javascript