Python: Change Certain Json Data And Write To Output File
I am trying to parse a .json file into a .kml file to be used by a plotting program. I am going to give a set a data samples to simplify the issue: I have a LocationHistory.json fi
Solution 1:
Add a step to the beginning of the for loop:
location['timestampMs'] = datetime.datetime.fromtimestamp(int(location.get("timestampMs"))/1000).strftime("%Y-%m-%dT%H:%M:%SZ")
Post a Comment for "Python: Change Certain Json Data And Write To Output File"