def register_json(self, obj):
if not isinstance(obj, list):<EOL><INDENT>obj = [obj]<EOL><DEDENT>self.register(Descriptor.from_json(j) for j in obj)<EOL>
Register Descriptors from json descriptor objects.

        Parameters:
            obj(list or dict): descriptors to register