input: 
  def parse_json_to_dict(json_str: str) -> dict:
      """ Converts a given 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'}}
      """
  
output:     import json
      return json.loads(json_str)