update code to fetch json data and create string array