Show More
@@ -68,14 +68,3 b' def resolve_ref(json, schema=None):' | |||||
68 | resolved = json |
|
68 | resolved = json | |
69 |
|
69 | |||
70 | return resolved |
|
70 | return resolved | |
71 |
|
||||
72 |
|
||||
73 | def convert(namein, nameout, indent=2): |
|
|||
74 | """resolve the references of namein, save the result in nameout""" |
|
|||
75 | jsn = None |
|
|||
76 | with open(namein) as file: |
|
|||
77 | jsn = json.load(file) |
|
|||
78 | v = resolve_ref(jsn) |
|
|||
79 | x = jsonpointer.resolve_pointer(v, '/notebook') |
|
|||
80 | with open(nameout, 'w') as file: |
|
|||
81 | json.dump(x, file, indent=indent) |
|
General Comments 0
You need to be logged in to leave comments.
Login now