json response working and saving