-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Labels
bugSomething isn't workingSomething isn't workingpipelineRelated to the pipelineRelated to the pipeline
Description
Error parsing file "result.json":
JSON.parse: bad escaped character at line 33 column 17 of the JSON data

Solution:
I exported from telegram group history (129mb) in result.json, then replaced some bad characters with python:
with open('result.json', encoding='utf-8') as f:
result = f.read()
result = result.replace('\\x0C','').replace('\\x00','').replace('\\x10','').replace('\\x11','').replace('\\x08','').replace('\\x01','')
with open('r.json','w+', encoding='utf-8') as f:
f.write(result)```
And now it works! Seems like telegram inserts some bad characters into .json
Thank you for huge work!mlomb
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpipelineRelated to the pipelineRelated to the pipeline