Detecting a specific type of invalid JSON file
I have JSON-like records being written by sensors.
How to retrieve file position during JSON parsing with ijson in Python?
I’m using the ijson library in Python to parse a large JSON file and I need to find the position in the file where specific data is located. I want to use file.tell() to get the current position of the file reader during the parsing process. But it’s only giving me the length of the file.