code: def get(self, name):
          
          # read the attribute
          attr = getattr(self.context, name, None)
          if callable(attr):
              return attr()
          return attr
docs: Get a JSON compatible structure for the named attribute