import json


def convert_to_json(value):
    """Converts the inputted object to JSON format.

    Args:
        value (obj): The object to be converted

    Returns:
        string : The JSON representation of the inputted object
    """
    return json.dumps(value)