not working but close

need to put json request into an object loop through