Previous Topic

Next Topic

JSONToString - MaxBasic Function

JSONToString(JSONObject: Object): String

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

JSONToString function has these named arguments:

Parameter

Description

JSON Object

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

The following sample code creates a JSON object based on IN Invoice Data, then uses the JSONToString to print the raw 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 JSONToString(JSON)

See Also

Web Functions

Book Contents

Book Index