A simple database
{"id":1, "title": "Todo X", "ownerId": 1, "done": true}
{"id":2, "title": "Todo Y", "ownerId": 2, "done": false}
{"id":3, "title": "Todo Z", "ownerId": 3, "done": true}
{"id":1, "title": "Todo U", "ownerId": 2, "done": true}
{"id":2, "title": "Todo V", "ownerId": 2, "done": false}
{"id":3, "title": "Todo W", "ownerId": 1, "done": true}
- We can store our data in a plain text file.
- Each line is a valid JSON object.
- We can read the file line by line and parse each line as a JSON object.
- It is simple but not efficient.