NoteStorage toJSON method