79251358

Date: 2024-12-04 13:35:34
Score: 1.5
Natty:
Report link

JSON file supports one object at a time. So, if it is a smaller file then you can load the whole file at once, and in Python memory, you can append the new data and rewrite it in the same file but as the file gets larger you won't be able it to load the whole file in memory. You cannot append new data from the last line of current data in the file.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hamza Sarwar