I need to collect all the WAS configuration detail in json format. I thought of using Jython for that. Can you please help how I can achieve it.
This functionality doesn't exist in WAS. The closest you will come is by using wsadmin to extract the configuration to a properties file. If you then need that in JSON you will have to convert it manually. Note that properties-based configuration doesn't include some configuration in the cell.