ImageGear .NET v25.2 - Updated
ImageGear.Web.UI Library / ImageGear.Web.UI Namespace / ArtPage class / saveToJson Method

In This Topic
    saveToJson Method
    In This Topic
    Saves marks to a JSON string.
    Syntax
    ASP.NET Ajax JavaScript (Specification) 
    function saveToJson() : string;
    ASP.NET Ajax JavaScript (Usage) 
    var resultVar = instanceOfArtPage.saveToJson();

    Return Value

    The JSON string that represents the state of all associated marks.
    Remarks

    This function saves all the marks that are currently associated with the ArtPage to a JSON string.

    Note: The JSON format is not a file format and should not be stored in a file or database for later use. The format of JSON strings is specific to a single revision of ImageGear and future versions will not support JSON strings written with this version. If you wish to store marks permanently, use the ImageGear ART XML file formats. You must use the server function, ImageGear.Web.UI.ArtConnection.Write to save JSON strings to the ART XML file format.

    See Also