Fetch JSON data from a text file