JavaScript Program: Catching and handling JSON string SyntaxError

JavaScript Program: Catching and handling JSON string SyntaxError