Published on InterSystems Developer Community (https://community.intersystems.com)

Home > How to get all properties defined in a class from %Dictionary.ClassDefinition?

Question
Ming Zhou · Jan 21, 2022

How to get all properties defined in a class from %Dictionary.ClassDefinition?

I am looking for a way to find all properties defined in any given class through coding, including those inherited from parent class(s). In case of inherited properties, I would like to know from which class etc.

A related question: XML adaptor provides a way to export xml schema for a class. Is there a similar method for JSON adaptor to generate a JSON schema for a class?

Thanks in advance for your help.

#InterSystems IRIS
Product version: IRIS 2021.1

Source URL:https://community.intersystems.com/post/how-get-all-properties-defined-class-dictionaryclassdefinition