def model_architecture(model):
    """Save a Keras model instance to a JSON object.

    Args:
        model (Keras model instance): A Keras model instance.

    Returns:
        JSON: A JSON object.

    """
    json_object = model.to_json()
    return json_object