input: Write a function to parse a json-formatted string into a dictionary in Python.
  
  import json
  
  def parse_json_to_dict(json_str):
      return json.loads(json_str)
  
  assert parse_json_to_dict('{"name": "John", "age": 30, "address": {"city": "New York", "state": "NY"}}')=={"name": "John", "age": 30, "address": {"city": "New York", "state": "NY"}}
  assert parse_json_to_dict('{}')=={}
  assert parse_json_to_dict('[]')==[]
  assert parse_json_to_dict('["apple", "banana", "cherry"]')==["apple", "banana", "cherry"]
  assert parse_json_to_dict('{"numbers": [1, 2, 3, 4, 5]}')=={"numbers": [1, 2, 3, 4, 5]}
output: import json
  
  def parse_json_to_dict(json_str):
      return json.loads(json_str)