I use a loop to every time add a new list called lst
to my txt file with this
with open('database.txt','a+') as myfile:
json.dump(lst,myfile)
but I want JSON to every time put a new list in a new row. How to do that? So I could later extract line by line and return it to list in program.
Or, can I insert ',' somehow between lists, so when I load the file and read it, get usable list of lists.