Won't data.bookmarks always be null now that you changed the structure of the JSON file?