#!/usr/bin/python
# -*- coding: utf-8 -*-

import cgi, os
import json

#cgitb.enable()
#cgi.test()

param_file_in = '/var/tmp/UnitStatus.json'
fin = open(param_file_in,'r')

with fin as json_file:
	sts_data_json = json.load(json_file)
json_file.close()

result = {'success':'true','message':'The Command Completed Successfully'};

#content_len = int(os.environ["CONTENT_LENGTH"])
#req_body = sys.stdin.read(content_len)
#myjson = json.loads(req_body)

print 'Content-Type: application/json\n\n'
print json.dumps(sts_data_json)

