Thanks ashokkumar, I was able to add any new custom property, when we create a group and that gets available at time of retrieval in json.
But I have requirement to Add few more things to display in the Community Groups components which needs to be dynamically generated when component is getting rendered(For e.g, count of members in the community).
How should I make such changes and return in the JSON response of a component?
I want to add some dynamic values in the JSON response, the properties added at the time of creation/updation of group changes only when you update/create group.
But for e.g. Member counts keeps on changing and I want to display that as well in community groups component, logic for that can only be calculated during rendering of a component.
Also, I want the feature of searching the groups based on other custom property,and sorting the collection of items.
If abstract classes to Extend the backend of these components (for e.g we have Abstract classes for Comments "AbstractCommentCollection" and for Activity "AbstractActivity") available then it would be more easy.