-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstorejson.py
42 lines (39 loc) · 1.37 KB
/
storejson.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import json
compatibilitiesStruct={
0:{
1:{"qnsRanking":[],"compatibilityScore":0},
2:{"qnsRanking":[],"compatibilityScore":0},
3:{"qnsRanking":[],"compatibilityScore":0},
4:{"qnsRanking":[],"compatibilityScore":0},
},
1:{
0:{"qnsRanking":[],"compatibilityScore":0},
2:{"qnsRanking":[],"compatibilityScore":0},
3:{"qnsRanking":[],"compatibilityScore":0},
4:{"qnsRanking":[],"compatibilityScore":0},
},
2:{
0:{"qnsRanking":[],"compatibilityScore":0},
1:{"qnsRanking":[],"compatibilityScore":0},
3:{"qnsRanking":[],"compatibilityScore":0},
4:{"qnsRanking":[],"compatibilityScore":0},
},
3:{
0:{"qnsRanking":[],"compatibilityScore":0},
1:{"qnsRanking":[],"compatibilityScore":0},
2:{"qnsRanking":[],"compatibilityScore":0},
4:{"qnsRanking":[],"compatibilityScore":0},
},
4:{
0:{"qnsRanking":[],"compatibilityScore":0},
1:{"qnsRanking":[],"compatibilityScore":0},
2:{"qnsRanking":[],"compatibilityScore":0},
3:{"qnsRanking":[],"compatibilityScore":0},
}
}
#file_path = 'compatibility.json'
# Open the file for writing
with open(file_path, 'w') as file:
# Use json.dump to write the dictionary to the file
json.dump(compatibilitiesStruct, file, indent=4)
print(f"Dictionary saved to {file_path}")