Added error reporting in json.