#!/usr/bin/python3
"""module to write an object to a text file"""


def save_to_json_file(my_obj, filename):
    import json
    with open(filename, "w") as myFile:
        return json.dump(my_obj, myFile)

66c190174cb6a159d713d130e26e12fe367bbd39
<mask token>

<mask token>


def save_to_json_file(my_obj, filename):
    import json
    with open(filename, 'w') as myFile:
        return json.dump(my_obj, myFile)

#!/usr/bin/python3
"""module to write an object to a text file"""


def save_to_json_file(my_obj, filename):
    import json
    with open(filename, "w") as myFile:
        return json.dump(my_obj, myFile)
