panda47 commited on
Commit
54f8f1a
1 Parent(s): 8c099e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -55,7 +55,14 @@ def get_json_file(json_docs):
55
  text_content=False,
56
  json_lines=True
57
  )
58
- json_doc = json_loader.load()
 
 
 
 
 
 
 
59
  return json_doc
60
 
61
 
 
55
  text_content=False,
56
  json_lines=True
57
  )
58
+ with open(temp_filepath,'r') as f:
59
+ s = f.read()
60
+ s = s.replace('\t','')
61
+ s = s.replace('\n','')
62
+ s = s.replace(',}','}')
63
+ s = s.replace(',]',']')
64
+ json_doc = json.loads(s)
65
+ # json_doc = json_loader.load()
66
  return json_doc
67
 
68