@app.route('/close', methods=['POST'])
def close():
    theFile = open('output.json', 'r+')
    theFileParsed = json.load(theFile)
    theFileParsed['close'] = request.get_data(as_text=True)
    theFile.seek(0)
    theFile.write((json.dumps(theFileParsed) + '      '))
    time.sleep(200)
    theFile.write('{ "close": "" }')
    return 'OK'
@app.route('/close', methods=['POST'])
def close():
    theFile = open('output.json', 'r+')
    theFileParsed = json.load(theFile)
    theFileParsed['close'] = request.get_data(as_text=True)
    theFile.seek(0)
    theFile.write((json.dumps(theFileParsed) + '      '))
    time.sleep(200)
    theFile.write('{ "close":  }')
    return 'OK'