an attempt to provide a json wrapper for modules