'Glances API RESTFul implementation.
Return the JSON representation of the Glances configuration item
HTTP/200 if OK
HTTP/400 if item is not found
HTTP/404 if others error'

def _api_config_item(self, item):

    response.content_type = 'application/json'
    config_dict = self.config.as_dict()
    if (item not in config_dict):
        abort(400, ('Unknown    configuration    item    %s' % item))
    try:
        args_json = json.dumps(config_dict[item])
    except Exception as e:
        abort(404, ('Cannot    get    config    item    (%s)' % str(e)))
    return args_json
