Skip to content

Tag: asyncstorage

Parsing JSON object with AsyncStorage

I am basically trying to write and read a simple object. Writing: AsyncStorage.setItem(‘@Test’, JSON.stringify(newStudent)) Reading: console.log(JSON.parse(AsyncStorage.getItem(‘@Test’))) But im getting “Uncaught SyntaxError: Unexpected token o in JSON at position 1”. I Als…