Skip to content
Snippets Groups Projects
Commit 414fd55c authored by Alice Brenon's avatar Alice Brenon
Browse files

Add a module exposing two functions to ease JSON load/saving by removing the...

Add a module exposing two functions to ease JSON load/saving by removing the need for a with: construct
parent 0ce762b5
No related branches found
No related tags found
No related merge requests found
import json
def load(inputJSON):
with open(inputJSON, 'r') as inputFile:
return json.load(inputFile)
def save(value, outputJSON):
with open(outputJSON, 'w') as outputFile:
json.dump(value, outputFile, separators=(',', ':'))
from GEODE.Store.Corpus import corpus, Directory, SelfContained
import GEODE.Store.JSON as JSON
from GEODE.Store.Tabular import tabular, toTSV
import os
import os.path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment