• Convert a variable to JSON.

    Parameters

    • variable: Variable

      The variable to convert to JSON

    Returns string

    The JSON string representing the variable

    Deprecated

    Use JSON.stringify(variable.toJSObject()) instead.