Automagic name attribute in JSON output

If name is not set by the module, it's set automatically to the
fully qualified python dotted path to the module :-)