Language Reference Guide : System Classes : JsonHandler Class : SetSerializableClassAttributes Method
 
Share this page          
SetSerializableClassAttributes Method
Sets the serializable attributes for a class.
This method has the following syntax:
integer = JsonHandler.SetSerializableClassAttributes(class = Class,
    attributes = StringObject)
This method has the following parameters:
class
Specifies the class for which serializable attributes will be defined.
attributes
Specifies a comma-separated list of attributes that are serializable for the given class.
If the method is successful, it returns ER_OK; otherwise, it returns ER_FAIL.
By default, the following attributes are serializable:
For all classes: classname
Additionally, for user classes: all public attributes
All public attributes
Additionally, for selected system classes:
 
System classes
Attributes
ArrayObject
row_class, rows
IntegerObject, FloatObject,
MoneyObject, DateObject
value
DecimalObject
value, precsion, scale
StringObject
stringvalue (containing the full string value)
BitmapObject, LongByteObject
stringvalue (base64 encoded)
ChoiceItem
enumvalue, enumtext, enumdisplay
ChoiceDetail
enumsubtext