updated code to fetch json data from dropbox