input: import json
  
  def parse_json_to_dict(json_string: str) -> dict:
      """ Parses a json-formatted string into a dictionary.
      >>> parse_json_to_dict('{"name": "John","age": 30,"address": {"city": "New York","state": "NY"}}')
      {'name': 'John', 'age': 30, 'address': {'city': 'New York', 'state': 'NY'}}
      """
      return json.loads(json_string)
output:     return json.loads(json_string)