<human>:  Python code to write a json object to file.
<bot>: Here is a Python code to write a json object to file

import json

def write_json_to_file(json_object, file_name):
  """Writes a json object to a file."""
  with open(file_name, 'w') as f:
    json.dump(json_object, f, indent=4)

# Enter the json object
json_object = {"hello": "world"}

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

# Calling the function
print((write_json_to_file(json_object, file_name)))

#Example Output
# None

#Remember to inspect code for bugs.