simple json database - write and read data to a json file