Human: Write me a Python function to object of type 'listserializer' is not json serializable. Assistant: 
Here is a Python function to object of type 'listserializer' is not json serializable

import json

def is_json_serializable(obj):
    """Check if object is json serializable."""
    try:
        json.dumps(obj)
        return True
    except TypeError:
        return False

# Enter the object
obj = [1, 2, 3]

# Calling the function
print((is_json_serializable(obj)))

#Example Output
# True

#Remember to inspect code for bugs.