input: Write a python function to extract data from a JSON string and return it as a dictionary.
  assert extract_json_data('{"name": "John Doe", "age": 23, "address": {"street": "123 Main Street", "city": "Berkeley", "state": "CA"}}') == {"name": "John Doe", "age": 23, "address": {"street": "123 Main Street", "city": "Berkeley", "state": "CA"}}
  assert extract_json_data('{"name": "Alice Smith", "age": 30, "address": {"street": "456 Elm Street", "city": "San Francisco", "state": "CA"}}') == {"name": "Alice Smith", "age": 30, "address": {"street": "456 Elm Street", "city": "San Francisco", "state": "CA"}}
output: import json
  
  def extract_json_data(json_string):
      return json.loads(json_string)