added getJSON function to wrap logging/request

I will refactor all this someday...promise...