Previous Topic

Next Topic

ParseJSONFromFile - MaxBasic Function

ParseJSONFromFile(aJSONFile: String): JSONObject

ParseJSONFromFile function returns the top level JSON object representing the aJSONFile file. Each JSON element will become a property against this object, which can be accessed using dot "." notation or array notation. For example:

  Print json.MyProperty

or

  Print json["MyProperty"]

As JSON is case sensitive and MaxBasic is not case sensitive, the second example above can be used when case sensitivity is required.

ParseJSONFromFile function syntax has these named arguments:

Parameter

Description

a JSON File

Required. The file name of the file to be parsed into a JSON object.

See Also

Web Functions

Book Contents

Book Index