def load(self):
<EOL>payload = {<EOL>'<STR_LIT:id>': self.id<EOL>}<EOL>response = self.lc.session.get('<STR_LIT>', query=payload)<EOL>self.response = response<EOL>json_response = response.json()<EOL>if self.lc.session.json_success(json_response) and json_response['<STR_LIT>'] != '<STR_LIT>':<EOL><INDENT>self.name = json_response['<STR_LIT>']<EOL>text = response.text<EOL>text = re.sub('<STR_LIT:\n>', '<STR_LIT>', text)<EOL>text = re.sub('<STR_LIT>', '<STR_LIT>', text)<EOL>blockTracker = []<EOL>blockChars = {<EOL>'<STR_LIT:[>': '<STR_LIT:]>',<EOL>'<STR_LIT:{>': '<STR_LIT:}>'<EOL>}<EOL>inQuote = False<EOL>lastChar = None<EOL>json_text = "<STR_LIT>"<EOL>for char in text:<EOL><INDENT>json_text += char<EOL>if char == '<STR_LIT:\\>':<EOL><INDENT>if lastChar == '<STR_LIT:\\>':<EOL><INDENT>lastChar = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>lastChar = char<EOL><DEDENT>continue<EOL><DEDENT>if char == "<STR_LIT:'>" or char == '<STR_LIT:">':<EOL><INDENT>if inQuote is False:  <EOL><INDENT>inQuote = char<EOL><DEDENT>elif inQuote == char:  <EOL><INDENT>inQuote = False<EOL><DEDENT>lastChar = char<EOL>continue<EOL><DEDENT>if char in blockChars.keys():<EOL><INDENT>blockTracker.insert(<NUM_LIT:0>, blockChars[char])<EOL><DEDENT>elif len(blockTracker) > <NUM_LIT:0> and char == blockTracker[<NUM_LIT:0>]:<EOL><INDENT>blockTracker.pop(<NUM_LIT:0>)<EOL><DEDENT>if len(blockTracker) == <NUM_LIT:0> and lastChar is not None:<EOL><INDENT>break<EOL><DEDENT>lastChar = char<EOL><DEDENT>try:<EOL><INDENT>if json_text.strip() == '<STR_LIT>':<EOL><INDENT>raise SavedFilterError('<STR_LIT>'.format(self.id), response)<EOL><DEDENT>json_test = json.loads(json_text)<EOL>assert type(json_test) is list, '<STR_LIT>'.format(type(json_test))<EOL>assert '<STR_LIT>' in json_test[<NUM_LIT:0>], '<STR_LIT>'<EOL>assert '<STR_LIT>' in json_test[<NUM_LIT:0>], '<STR_LIT>'<EOL>self.json = json_test<EOL><DEDENT>except Exception as e:<EOL><INDENT>raise SavedFilterError('<STR_LIT>'.format(str(e)))<EOL><DEDENT>self.json_text = json_text<EOL>self.__analyze()<EOL><DEDENT>else:<EOL><INDENT>raise SavedFilterError('<STR_LIT>'.format(self.id), response)<EOL><DEDENT>
Load the filter from the server