<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def element_by_href_as_json(href, params=None):
 """ Get specified element by href :param href: link to object :param params: optional search query parameters :return: json data representing element, else None """

    if href:
        element = fetch_json_by_href(href, params=params)
        if element:
            return element.json