code: def _api_config(self):
          
          response.content_type = 'application/json; charset=utf-8'
  
          try:
              # Get the JSON value of the config' dict
              args_json = json.dumps(self.config.as_dict())
          except Exception as e:
              abort(404, "Cannot get config (%s)" % str(e))
          return args_json
docs: Glances API RESTful implementation.
  
          Return the JSON representation of the Glances configuration file
          HTTP/200 if OK
          HTTP/404 if others error