make sure json return is transformed into an array we can manipulate