Setup the array with json data.