seprate it to diffrenet clasess , one for connection and the second for get json