input: Write a python function to fetch a webpage, parse its content into a key-value dictionary, and convert it to JSON format.
  assert my_function('https://example.com/blogpage') == json.dumps({"key1": "value1", "key2": "value2"})
  assert my_function('https://another-example.com/page') == json.dumps({"keyA": "valueA", "keyB": "valueB"})
  assert my_function('https://yet-another-example.com/content') == json.dumps({"keyX": "valueX", "keyY": "valueY"})
output: import requests
  from bs4 import BeautifulSoup
  import json
  
  def my_function(url):
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      
      # Assuming the webpage contains <key> and <value> tags for simplicity
      keys = [tag.text for tag in soup.find_all('key')]
      values = [tag.text for tag in soup.find_all('value')]
      
      # Combine into a dictionary
      result_dict = dict(zip(keys, values))
      
      # Convert to JSON
      return json.dumps(result_dict)