adding functionality in json storage, remove length