A
A
Alex Sura2020-01-06 15:47:49
JSON
Alex Sura, 2020-01-06 15:47:49

Change or completely overwrite a JSON file?

There is a collection of defined objects. The state of the collection is stored in a JSON file.
The question itself: when adding / deleting / changing any object, is it more correct to add (search for changing / deleting) this particular object in the JSON file, or just take and completely overwrite the entire collection?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2020-01-06
@GavriKos

If the file is small (conditionally - kilobytes), then it is easier and faster to overwrite the entire file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question