<reponame>wolli2710/SleepStagingVisualization<gh_stars>1-10
import json

def readData():
    f = open("acceleration_1408627784", "r")
    f2 = open("result_acceleration", "w")
    jsonData = json.load(f)
    sortedA = []
    for k in jsonData:
        for x in k.keys():
            sortedA.append( { int(x)/1000000000.0: k[x] })
    f2.write( json.dumps(sorted(sortedA)) )
    f.close()

readData()