Previous Topic

Next Topic

JSONClone - MaxBasic Function

JSONClone(JSONObject: Object): Object

Takes a JSON Object and returns a new JSON Object cloned from the original object.

JSONClone function has these named arguments:

Parameter

Description

JSON Object

Required. A JSON Object to clone.

The following sample code creates a JSON Object called JSON1 based on IN Invoice Data, the clones the object as JSON2.

Sample code:

Dim datINInvoice as Object

datINInvoice = CreateObject("Accredo.INInvoiceData")

Dim JSON1 as Object

JSON1 = BuildJSON(datINInvoice, "CustomerCode;DocumentNo;DocumentID;Line", "Charge;Banking")

Dim JSON2 as Object

JSON2 = Clone(JSON1)

See Also

Web Functions

Book Contents

Book Index