Previous Topic

Next Topic

JSONStringify - MaxBasic Function

JSONStringify(JSONObject: Object): String

Takes a JSON Object and returns the object represented as a formatted JSON string.

JSONStringify function has these named arguments:

Parameter

Description

JSON Object

Required. A JSON Object to represent as a formatted string.

The following sample code creates a JSON object based on IN Invoice Data, then uses the JSONStringify to print the formatted JSON object.

Sample code:

Dim datINInvoice as Object

datINInvoice = CreateObject("Accredo.INInvoiceData")

Dim JSON as Object

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

Print JSONStringify(JSON)

See Also

Web Functions

Book Contents

Book Index