Validate JSON String using JavaScript

This article is for Validate JSON String using Javascript. It’s a JavaScript World, JavaScript is everywhere, on the browser, on the server, on mobile, on cloud and everyone uses JSON as data to pass from one end to other ends. JavaScript has an inbuilt function to parse the JSON object and which is supported by latest browsers. Before using JSON string, it has to be valid or it will throw an exception. Here is the function which validates the JSON string.