JSONCreateArray([RootObject: Object, ElementName: String]): Object
Creates a JSON Array rooted to the RootObject, with elements named in the Element Name string.
JSONCreateArray function has these named arguments:
Parameter |
Description |
Root Object |
Optional. The object to root the JSON Array to. |
Element Name |
Required if Root Object specified. A semi-colon delimited string containing the elements to be included. |
The following sample code creates a JSON object based on IN Invoice Data, then creates a JSON Array containing the Customer Code and Document No.
Sample code:
Dim datINInvoice as Object
datINInvoice = CreateObject("Accredo.INInvoiceData")
Dim JSON as Object
JSON = BuildJSON(datINInvoice, "CustomerCode;DocumentNo;DocumentID;Line", "Charge;Banking")
Dim obj as Object
obj = JSONCreateArray(JSON, "CustomerCode;DocumentNo")