human
Write me a Python code for saving json to file.
assistant
Here is a Python code for saving json to file

import json

def save_json(json_data, file_path):
    """Saves json data to file."""
    with open(file_path, 'w') as f:
        json.dump(json_data, f, indent=4)

# Enter the json data
json_data = {"hello": "world"}

# Enter the file path
file_path = "test.json"

# Calling the function
print((save_json(json_data, file_path)))

#Example Output
# None

#Remember to inspect code for bugs.