get and post json request an response