convert response hash into object
convert response hash into ruby object