The json obj comes in the format described in the question from a network resource :
resp, content = http.request(statistics_url,
method='POST',
headers={'Content-Type': 'application/json', 'charset':'UTF-8','Connection':'keep-alive', 'Host':'theHost'}, body=json_body)
and then I call printResponseToSplunk(), passing the content object to it
... View more