Reads and parses the data from the JSON file (without locking).
Acquires the data in the JSON file while using a read lock.
Updates the data in the JSON file while using a write lock.
A function that updates the JSON object.
The return value of updateFn
.
Uses a JSON file to store key/value pairs.