Added Exception for invalid JSON Parsing

Added an exception for the json_decode in the readSettings() function.