Skip to content

Methods for cJsonObject

View method list in alphabetical order.

Name Type Description Defining Class
AddMember Procedure Appends an initialized JSON object to an array Appends an initialized JSON object to an array. cJsonObject
AddMemberValue Procedure Appends a simple value to an array Appends a simple value to an array. cJsonObject
DataTypeToJson Procedure Converts a native DataFlex variable (usually a struct / array) into a JSON object structure representing that data cJsonObject
HasMember Function Checks if a member exists based on the passed member name (or array index) Checks if a member exists based on the passed member name (or array index). cJsonObject
InitializeJsonType Procedure Initializes the JSON object as a specific type Initializes the JSON object as a specific type. cJsonObject
IsMemberOfJsonType Function Checks JSON type of a specific member of an array or object against the passed type Checks JSON type of a specific member of an array or object against the passed type. cJsonObject
IsOfJsonType Function Determines if the object is of a specific type Determines if the object is of a specific type. cJsonObject
JsonToDataType Function Converts a JSON object structure into a native DataFlex variable (usually a struct / array) Converts a JSON object structure into a native DataFlex variable (usually a struct / array). cJsonObject
JsonType Function Returns the type of the object as an integer constant Returns the type of the object as an integer constant. cJsonObject
Member Function Gets a member of the JSON object by its name or array index Gets a member of the JSON object by its name or array index. cJsonObject
MemberByIndex Function Get a member object its index. cJsonObject
MemberCount Function Returns the number of members of an array or an object Returns the number of members of an array or an object. cJsonObject
MemberJsonType Function Determines the JSON type of a specific member of an array or object Determines the JSON type of a specific member of an array or object. cJsonObject
MemberNameByIndex Function Gets the name of an object member by its index. cJsonObject
MemberValue Function Returns the value of a member of the JSON object Returns the value of a member of the JSON object. cJsonObject
ParseString Function Parses a string of JSON into a JSON object structure Parses a string of JSON into a JSON object structure, where the object instance on which it is called is represents the outermost JSON object. cJsonObject
ParseUtf8 Function Parses a string of UTF-8 encoded data containing JSON into a JSON object structure cJsonObject
RemoveMember Procedure Removes a member from a JSON object or array Removes a member from a JSON object or array. cJsonObject
ReportParseError Procedure If ParseString or ParseUtf8 failed, calling this procedure will trigger an error with the proper description. cJsonObject
SetMember Procedure Sets the member of an object or array to an initialized JSON object Sets the member of an object or array to an initialized JSON object. cJsonObject
SetMemberValue Procedure Sets the member of an object directly to a simple value Sets the member of an object directly to a simple value. cJsonObject
Stringify Function Generates the JSON string for the object structure being represented by the JSON objects Generates the JSON string for the object structure being represented by the JSON objects. cJsonObject
StringifyUtf8 Function Generates the JSON string for the object structure being represented by the JSON objects Generates the JSON string for the object structure being represented by the JSON objects. cJsonObject

Inherited Methods from cObject

Name Type Description Defining Class
ChildByIndex Function Can be used to iterate the direct children of an object ChildByIndex is a function that can be used to iterate the direct children of an object. cObject
ClassSuperClass Function Returns the superclass of the passed class This returns the superclass of the passed class. cObject
Create Function Creates an object based on the passed Class Id The Create function is used to dynamically create objects. cObject
CreateNamed Function Creates an object based on the passed Class Id and assigns it a name Name based on a passed name Creates an object based on the passed Class Id and assigns it a name Name based on a passed name. cObject
Destroy Procedure Destroys the object that receives the message and any child objects of that object The Destroy message destroys the object that receives the message. cObject
Exit_Application Procedure Starts the process of closing an application The Exit_Application message is used to close the program. cObject
IsClassOfClass Function Determines whether the target class is part of the searched class's hierarchy cObject
IsObjectOfClass Function Determines whether the passed class is part of the object's class hierarchy This returns True if the passed class is part of the object's class hierarchy. cObject
ObjectClass Function Returns the integer class ID assigned to the class this object is based on Returns the integer class ID assigned to the class this object is based on. cObject
Request_Destroy_Object Procedure Use the Destroy method instead This method is used to destroy an object and all of its children. cObject