'Extract and deserialize serialized data from the response.'

def load_serialized_data(self, response, key):

    pattern = re.compile('{key}:    (?P<data>\\[.*\\])'.format(key=key))
    match = pattern.search(response.content)
    serialized = match.group('data')
    return json.loads(serialized)
