input: Write a python function to fetch JSON data from a given API URL.
  assert fetch_json_data('http://example.com/api/') == {'key': 'value'}  # Replace with actual expected data
  assert fetch_json_data('http://anotherexample.com/api/') == {'another_key': 'another_value'}  # Replace with actual expected data
output: import requests
  
  def fetch_json_data(url):
      response = requests.get(url)
      return response.json()