Xbasic

a5_makeJsonTree Function

Syntax

C result = a5_makeJsonTree(treeIn as P [, opsIn as P])

Arguments

treeInPointer

The an array of objects. Each object in the array must define the following properties:

labelCharacter

levelNumeric

opsInPointer

Default is null_value()

opsIn.showActionLogical

Default is .f.

opsIn.propertyNameCharacter

Default is "html"

opsIn.modeCharacter

Default is "". Can be blank or set to "lists".

Description

Takes an array and makes a JSON tree. Array has these properties at a minimum: .label, .level.

See Also