input: Write a function to parse a json-formatted string into a dictionary. Return the dictionary. 
  
  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('{"fruit": "apple","color": "red"}')=={'fruit': 'apple', 'color': 'red'}
  assert parse_json_to_dict('{"numbers": [1,2,3]}')=={'numbers': [1, 2, 3]}
  assert parse_json_to_dict('{}')=={}
  assert parse_json_to_dict('{"is_active": true}')=={'is_active': True}
output: import json
  
  def parse_json_to_dict(json_str):
      return json.loads(json_str)