JSON data and localStorage handled properly.