result = {'success': 'true', 'message': 'The Command Completed Successfully'}
myjson = json.load(sys.stdin)
print('Content-Type: application/json\n\n')
print(json.dumps(result))
Post JSON to Python CGI