Well not really sure what's going wrong since I can't open your project. But since this function is very simple, here a rundown how it would work if it is just supposed to be for one play session:
variable1 = "" (text / string)
s pressed: set variable1 = array.asjson
l pressed: array json load from string variable1
Not sure what can go wrong there except defining the variable as number instead of text.