# Copyright (C) 2005-2024 Splunk Inc. All Rights Reserved. import json import splunk.rest class BaseSplunkdRest(splunk.rest.BaseRestHandler): """ Base class for all of ITSI's splunkd endpoints """ def render_json(self, response_data): ''' given data, convert it to a JSON which is consumable by a web client ''' response = json.dumps(response_data).replace("