added json parsing on fileRead for json files