{"comment":{"url":"https://api.github.com/repos/kwong-coursera/shift/comments/16013253","html_url":"https://github.com/kwong-coursera/shift/commit/6a0cd099d0804cfee384b089fcc3071a7a977623#commitcomment-16013253","id":16013253,"user":{"login":"StanleyFung","id":3315267,"avatar_url":"https://avatars.githubusercontent.com/u/3315267?v=3","gravatar_id":"","url":"https://api.github.com/users/StanleyFung","html_url":"https://github.com/StanleyFung","followers_url":"https://api.github.com/users/StanleyFung/followers","following_url":"https://api.github.com/users/StanleyFung/following{/other_user}","gists_url":"https://api.github.com/users/StanleyFung/gists{/gist_id}","starred_url":"https://api.github.com/users/StanleyFung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StanleyFung/subscriptions","organizations_url":"https://api.github.com/users/StanleyFung/orgs","repos_url":"https://api.github.com/users/StanleyFung/repos","events_url":"https://api.github.com/users/StanleyFung/events{/privacy}","received_events_url":"https://api.github.com/users/StanleyFung/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"6a0cd099d0804cfee384b089fcc3071a7a977623","created_at":"2016-02-10T18:25:14Z","updated_at":"2016-02-10T18:25:14Z","body":"I think you want sharedPreferences.getString(key, gson.toJson(defaultValue)), objectClass) in line 138 of ShiftPersistenceManager? There is no assumption that defaultValue.toString will return as JSON."}}