Added support for automatically generating JSON documents for each class