code: def element_as_json(name):
      
      if name:
          element = fetch_json_by_name(name)
          if element.json:
              return element.json
docs: Get specified element json data by name
  
      :param name: name of element
      :return: json data representing element, else None