JSONStore helper to store JSON through localStorage