Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Class (static) variables cannot be included in the JSON output as they are not associated with any particular instance of the class. JSON only represents data that belongs to a particular object instance. Therefore, to include data from class (static) variables in the JSON output, you would need to create an instance of the class and then include the data from the class (static) variables in the instance.