getting the json out