Temporary storage for JSON data

So here I am trying to figure out how to temporarily store JSON data into something storage that holds multiple data and let me push another data until user satisfies with the options or until some kind of conditions. So I tried to use local variable and I forgot that every time the page loads the declaration of the variable will be back as empty array.

Here is the process flow of my app

Any idea what kind of storage should I use? Im thinking for hours trying to figure out what is the easiest way for this to be done. Any opinion will do or is it possible?