JSONDelete(JSONObject: Object, ElementName: String)
Takes a JSON Object and deletes the element named in ElementName.
JSONDelete function has these named arguments:
Parameter |
Description |
JSON Object |
Required. The JSON Object to modify. |
Element Name |
Required. The name of the element to delete from the JSON Object. |
The following sample code creates a JSON object based on IN Invoice Data, then deletes the Document No element.
Sample code:
Dim datINInvoice as Object
datINInvoice = CreateObject("Accredo.INInvoiceData")
Dim JSON as Object
JSON = BuildJSON(datINInvoice, "CustomerCode;DocumentNo;DocumentID;Line", "Charge;Banking")
JSONDelete(JSON, "DocumentNo")