When updating in loop with 2seconds brokes the file
Describe the bug I'm trying to update my json every 2 seconds but after couple updateing it will be broken.
This is the normal ending of my json file.

This is the broken json

This is the error code

From the TraceBack, I assume you are using Threads.. Uhhhh.... This package and threads do not work that well. We might work on a fix, but these days we both are kind of busy with college and other stuff so it will probably take some time. And sorry for the inconvenience 🙃 .
That's okay thanks for responding :)
Have been facing the same issue in the recent past. mostly when there's quick updation of the db file. I saw some "null" characters appended as well. any workaround would be appreciated.
@suhasa010 @MrMirhan is it possible for you guys run the test on pysondb-v2 and check whether the same issue happens or not.
install pysondb-v2 with this command.
pip3 install pysondb-v2[all]
make sure that you delete the old version. and also check the docs.(the names of the methods have changed so that it follow PEP8 conventions)
Did anyone find a fix to the issue? I want the use the pysondb with backgroundscheduler and I get the same symptoms