<human>:  Python function to read json files with multiple objects.
<bot>: Here is a Python function to read json files with multiple objects

import json

def read_json_file(filename):
  """Read json file with multiple object."""
  with open(filename, 'r') as f:
    data = json.load(f)
  return data

# Enter the file name
filename = "test.json"

# Calling the function
data = read_json_file(filename)

# Printing the data
print(data)

#Example Output
# {'a': 1, 'b': 2}

#Remember to inspect code for bugs.