Changed localJSON function

Now it wont give back values. Using local variable instead.