Changed JSON parser for LocalStorage implementation