When to use SQLite
SQLite is one of the forms of saving your data, how to protect your data. Generally, if you want to store more data and have quick access to it (and also if the data is “sensitive”), SQLite is a great choice. Therefore, I do not agree that SQLite is slow, I definitely do not think so.
I have an SQLite database with approximately 650,000 records and still smart performance (sometimes using indexes is required).
When to use JSON
JSON is a lightweight data structure designed to exchange data with a person and what is the main language-independent. This is a very good choice (perhaps the best) if you want to send data over the network (send data to a remote server, etc.), but I think that it is not very good for saving data, and it is unsafe as SQLite.
Generally, you should compare JSON with XML , but you cannot compare SQLite and JSON, which are two different things.
source share