code: def _api_all(self):
          
          response.content_type = 'application/json; charset=utf-8'
  
          if self.args.debug:
              fname = os.path.join(tempfile.gettempdir(), 'glances-debug.json')
              try:
                  with open(fname) as f:
                      return f.read()
              except IOError:
                  logger.debug("Debug file (%s) not found" % fname)
  
          # Update the stat
          self.__update__()
  
          try:
              # Get the JSON value of the stat ID
              statval = json.dumps(self.stats.getAllAsDict())
          except Exception as e:
              abort(404, "Cannot get stats (%s)" % str(e))
  
          return statval
docs: Glances API RESTful implementation.
  
          Return the JSON representation of all the plugins
          HTTP/200 if OK
          HTTP/400 if plugin is not found
          HTTP/404 if others error