added and exception handler for bad JSON syntax