Previous Topic

Next Topic

ParseJSON - MaxBasic Function

ParseJSON(aJSONString: String): JSONObject

Parse JSON function returns the top level JSON object representing the aJSONString string. 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.

The ParseJSON function can be used with the IsArray, LBound and UBound functions.

ParseJSON function syntax has these named arguments:

Parameter

Description

a JSON String

Required. The string to be parsed into a JSON object.

See Also

Web Functions

Book Contents

Book Index