Compare the results of GetType() to the values in the Progress.Json.ObjectModel.JsonDataType enum class.
The values basically are
enum OpenEdge.Core.JsonDataTypeEnum :
define
enum
String =
1
/* = JsonDataType:STRING */
Number
/* = 2 = JsonDataType:NUMBER */
Boolean
/* = 3 = JsonDataType:BOOLEAN */
Object
/* = 4 = JsonDataType:OBJECT */
Array
/* = 5 = JsonDataType:ARRAY */
Null
/* = 6 = JsonDataType:NULL */
.
end
enum.
You can display names with some tapdancing ….
Def var enumDataType as JsonDataTypeEnum.
Def var intDataType as int.
intDataType = someJsonData:GetType(“Person”).
enumDataType = JsonDataTypeEnum:GetEnum(intDataType).
Message “Person is a “ string(enumDataType).
// Person is a String