Store in local storage using JSON