Adding function to traverse json file and populating settings dict