trying to get my json data outside of my json class