#!/usr/bin/python3
""" defines a function that writes an Object to a text file, using a
    JSON representation: """
import json


def save_to_json_file(my_obj, filename):
    """ functions """
    with open(filename, 'w') as f:
        f.write(json.dumps(my_obj))

9ca16403d0a3870b2d8038c3b4a51b9338a924c7
<mask token>

<mask token>


def save_to_json_file(my_obj, filename):
    """ functions """
    with open(filename, 'w') as f:
        f.write(json.dumps(my_obj))

<mask token>
import json


def save_to_json_file(my_obj, filename):
    """ functions """
    with open(filename, 'w') as f:
        f.write(json.dumps(my_obj))

#!/usr/bin/python3
""" defines a function that writes an Object to a text file, using a
    JSON representation: """
import json


def save_to_json_file(my_obj, filename):
    """ functions """
    with open(filename, 'w') as f:
        f.write(json.dumps(my_obj))
