adding ability to get json from get request