'Parses method html into json object
:param method: raw html data of method
:return: json object of parsed values'

def get_parsed_method_from_data(self, method):

    attributes = {}
    html_soup = BeautifulSoup(str(method), 'html.parser')
    attributes['base_url'] = self.base_url
    attributes['base_title'] = self.base_title
    attributes['id'] = html_soup.dt['id']
    attributes['title'] = ((attributes['id'].split('.')[1] + '    ') + attributes['id'].split('.')[2])
    attributes['headerlink'] = '{}{}'.format(self.base_url, html_soup.a['href'])
    attributes['code'] = ''
    code_line = re.search('^<code.*\n', method, re.MULTILINE).group(0)
    code_line = code_line[0:(code_line.rindex('</span>') + len('</span>'))]
    attributes['code'] = self._clean_html_tags(code_line)
    temp_desc = ''
    for (index, value) in enumerate(html_soup.dd):
        temp_desc += str(value)
    attributes['description'] = self._clean_html_tags(temp_desc)
    attributes['abstract'] = ((((('<section    class="prog_container">' + '<pre><code>') + attributes['code']) + '</pre></code><p>') + attributes['description']) + '</p></section>')
    return attributes
