I'e thought of those things before, however I wanted to have a more self contained solution.
I want to be able to call a function specifying the data field I want to retrieve, and be able to return that value, enabling me to push that value to any variable I wish.
Right now I'm limited in the sense that I must always push that Ajax.LastData into a fixed variable or dictionary.
So I'm i'm making an online game where a player's score is kept, everytime I call "get_score()" I would have to make sure that at the end of the process the data gotten via ajax gets put into a variable, say "payload".
So that means if I want to set the variable "player_score" I'd have to first call "get_score()" then I have to immediately call "set player_score to payload".
This just makes it very difficult to use in expressions.